InventoryObjectType Class Reference

Example of a ScriptableObject base class that implements ExposeMember.

Detailed Description

Shows how to use the conditionalDisplayMemberName and tool-tip parameters in ExposeMember Attributes Shows use of the Unity defined MultiLine attribute

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using EyE.Unity;
{
//[CreateAssetMenuAttribute(fileName = "DefaultInventoryItemType", menuName = "Types/InventoryItemType", order = 0)]
public abstract class InventoryObjectType : ScriptableObject
{
[ExposeMemberAttribute(conditionalDisplayMemberName = "isAnInventoryObjectType", tooltip = "When Saved as an asset, the system will attempted to use this string for filename of the InventoryObjectType asset.")]
public string inventoryObjectTypeName { get { return base.name; } set { base.name = value; } }
[ExposeMemberAttribute]
[Multiline]
public string typeDescription;
[ExposeMemberAttribute]
public ObjectSize sizeInInventory = new ObjectSize();
[ExposeMember]
public Mesh model;
[ExposeMember]
public abstract float Price
{
get;
}
bool isAnInventoryObjectType() { return this.GetType() == typeof(InventoryObjectType); }
}
}

Public Attributes

Mesh model
 
ObjectSize sizeInInventory
 
string typeDescription
 

Properties

string inventoryObjectTypeName [get, set]
 
abstract float Price [get]
 
+ Inheritance diagram for InventoryObjectType:
+ Collaboration diagram for InventoryObjectType:
EyE
This namespace contains classes that provide various tools for use in the Unity Editor.
Definition: EmbededXMLTooltip.cs:5
EyE.Unity.Examples
Definition: CatDebugExample.cs:7
EyE.Unity
This namespace holds classes that extended or inherit from various Unity defined classes....
Definition: EmbededXMLTooltip.cs:5