Class DataAttribute | Kinematica | 0.8.0-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class DataAttribute

    Attribute used to annotate data types that are used as elements in the execution graph

    Inheritance
    Object
    Attribute
    DataAttribute
    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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Monday, August 3, 2020