PropertyInterface
Nectunia.PropertyInterface.Tag Class Reference

Detailed Description

Class used by MonoBehaviourTagged component to know wich other MonoBehaviourTagged component it can interact with.

Because of how the Tag are stored, their ref can change between two frame. You shouldn't refer a Tag by it's reference. Use TagID instead. /!\ You should not use Tag when game play.

Properties

Tag.ValueType ValuesType [get, set]
 The Type of the values that will be used by all MonoBehaviourTagged component wich refer this Tag. More...
 

Public Attributes

TagID Id
 The TagID of the Tag. More...
 
string Name
 The name of the tag. More...
 
Texture2D Icon
 The icon assigned to a Tag More...
 

Static Public Attributes

const ValueType DEFAULT_VALUESTYPE = ValueType.Float
 Default ValueType set to a Tag. More...
 

Public Types

enum  ValueType {
  ValueType.Boolean, ValueType.Color, ValueType.Double, ValueType.Float,
  ValueType.Int, ValueType.Long, ValueType.String, ValueType.Vector2,
  ValueType.Vector2Int, ValueType.Vector3, ValueType.Vector3Int, ValueType.Vector4
}
 List all Type that can be assigned to values of a MonoBehaviourTagged component. More...
 

Public Member Functions

System.Type GetSelectedType ()
 Return the System.Type of the current Tag.ValueType. More...
 

Static Public Member Functions

static System.Type GetSystemType (Tag.ValueType type)
 Return the Type of the Tag.ValueType passed. More...
 

Property Documentation

◆ ValuesType

Tag.ValueType Nectunia.PropertyInterface.Tag.ValuesType
getset

The Type of the values that will be used by all MonoBehaviourTagged component wich refer this Tag.

Member Function Documentation

◆ GetSelectedType()

System.Type Nectunia.PropertyInterface.Tag.GetSelectedType ( )

Return the System.Type of the current Tag.ValueType.

Returns
The System.Type of the current Tag.ValueType.

◆ GetSystemType()

static System.Type Nectunia.PropertyInterface.Tag.GetSystemType ( Tag.ValueType  type)
static

Return the Type of the Tag.ValueType passed.

Parameters
typeThe Tag.ValueType to return the system Type.
Returns
The system type of the Tag.ValueType passed.

Member Enumeration Documentation

◆ ValueType

List all Type that can be assigned to values of a MonoBehaviourTagged component.

Enumerator
Boolean 
Color 
Double 
Float 
Int 
Long 
String 
Vector2 
Vector2Int 
Vector3 
Vector3Int 
Vector4 

Member Data Documentation

◆ DEFAULT_VALUESTYPE

const ValueType Nectunia.PropertyInterface.Tag.DEFAULT_VALUESTYPE = ValueType.Float
static

Default ValueType set to a Tag.

◆ Icon

Texture2D Nectunia.PropertyInterface.Tag.Icon

The icon assigned to a Tag

◆ Id

TagID Nectunia.PropertyInterface.Tag.Id

The TagID of the Tag.

TagID should be use to refer a Tag instead of the Tag's reference.

◆ Name

string Nectunia.PropertyInterface.Tag.Name

The name of the tag.