Class DataAttribute
Attribute used to annotate data types that are used as elements in the execution graph
Namespace: Unity.Kinematica
Syntax
[AttributeUsage(AttributeTargets.Struct)]
public class DataAttribute : Attribute, _Attribute
Remarks
[Data("Trajectory", "#2A3756")]
public struct Trajectory
{
...
}
Constructors
DataAttribute(String, String, DataFlags)
Constructs a new data attribute with the name and flags passed as argument.
Declaration
public DataAttribute(string displayName, string color, DataFlags flags = DataFlags.None)
Parameters
| Type | Name | Description |
|---|---|---|
| String | displayName | Display name to be used for the data type. |
| String | color | Color to be used for display purposes of this data type. |
| DataFlags | flags |
DataAttribute(String, DataFlags)
Construct a new data attribute with the name and flags passed as argument.
Declaration
public DataAttribute(string displayName, DataFlags flags = DataFlags.None)
Parameters
| Type | Name | Description |
|---|---|---|
| String | displayName | Display name to be used for the data type. |
| DataFlags | flags |
See Also
Unity.Kinematica.DataType