Class IProperty
Base property component.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Global Namespace
Syntax
public class IProperty : IComponentAttachment
Fields
_subType
The sub type
Declaration
[SerializeField]
protected SerializableType _subType
Field Value
| Type | Description |
|---|---|
| SerializableType |
kDataFieldBindingFlags
Flags describing the data field, used for reflection.
Declaration
public const BindingFlags kDataFieldBindingFlags = BindingFlags.Instance | BindingFlags.Public
Field Value
| Type | Description |
|---|---|
| BindingFlags |
kDataFieldName
Constant name for the port field used for reflection.
Declaration
public const string kDataFieldName = "data"
Field Value
| Type | Description |
|---|---|
| String |
Properties
Port
Reference to the port held by this property.
Declaration
public virtual IPortType Port { get; }
Property Value
| Type | Description |
|---|---|
| IPortType | The port. |
SubType
Gets or sets the type of the sub.
Declaration
public Type SubType { get; set; }
Property Value
| Type | Description |
|---|---|
| Type | The type of the sub. |
Methods
OnValidate()
Implement for behaviour on property data change.
Declaration
public virtual void OnValidate()
SetDefaultValue(String)
Set a default value using the serialized port json.
Declaration
public virtual void SetDefaultValue(string jsonNodeValue)
Parameters
| Type | Name | Description |
|---|---|---|
| String | jsonNodeValue | Serialized representation of the port. |