Class DataAttribute | Kinematica | 0.6.0-preview
docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023