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

    Class DataAttribute

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

    Inheritance
    Object
    Attribute
    DataAttribute
    Namespace: Unity.Kinematica
    Syntax
    [AttributeUsage(AttributeTargets.Struct)]
    public class DataAttribute : Attribute, _Attribute
    Remarks
    [Data("CurrentPose", "#2A3756"), BurstCompile]
    public struct CurrentPoseTask : Task
    {
        ...
    }

    Constructors

    DataAttribute(String, String, DataType.Flag)

    Constructs a new data attribute with the name and flags passed as argument.

    Declaration
    public DataAttribute(string displayName, string color, DataType.Flag flag = DataType.Flag.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.

    DataType.Flag flag

    Flags that control the behavior of this data type.

    DataAttribute(String, DataType.Flag)

    Construct a new data attribute with the name and flags passed as argument.

    Declaration
    public DataAttribute(string displayName, DataType.Flag flag = DataType.Flag.None)
    Parameters
    Type Name Description
    String displayName

    Display name to be used for the data type.

    DataType.Flag flag

    Flags that control the behavior of this data type.

    See Also

    DataType
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX