docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Binary.Trait

    Traits are user-defined characteristics that can be associated to tags or markers.

    Namespace: Unity.Kinematica
    Assembly: solution.dll
    Syntax
    public struct Binary.Trait
    Remarks

    Users can define own custom data by using C# structs. These structs will then show up in the Kinematica builder tool and allow tags or markers to be created carrying specific instances of the corresponding traits. A trait itself wraps the actual payload (the instance of the user-defined struct).

    [Trait]
    public struct Anchor
    {
        public AffineTransform transform;
    }

    Fields

    Name Description
    typeIndex

    Denotes the type index of this trait.

    Methods

    Name Description
    IsType(TypeIndex)

    Determines if the trait is equal to a type passed as argument.

    See Also

    Binary.Tag
    Binary.Marker
    Query
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)