Class Property<T>
Generic property implementation.
Inheritance
Property<T>
Inherited Members
Namespace: Global Namespace
Assembly: solution.dll
Syntax
[Serializable]
[AddComponentMenu("Properties")]
public class Property<T> : IProperty
Type Parameters
| Name | Description |
|---|---|
| T | Underlying data type of the property. |
Constructors
| Name | Description |
|---|---|
| Property() | Default init. |
Fields
| Name | Description |
|---|---|
| data | Port type created used the data type provided. If this port cannot serialize properly then the property will not work. |
Properties
| Name | Description |
|---|---|
| Port | Reference to the port. |
Methods
| Name | Description |
|---|---|
| GetKey() | Gets the key that defines this component attachment, the key is used to identify the component in a map. |
| OnValidate() | Implement for behaviour on property data change. |
| SetDefaultValue(string) | Set a default value using the serialized port json. |