Struct Binary.Tag | Kinematica | 0.5.0-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Binary.Tag

    Tags are used to associate a trait to a sequence of animation frames.

    Namespace: Unity.Kinematica
    Syntax
    public struct Tag
    Remarks

    Tags can be used in a variety of scenarios:

    • Narrow the result of a query
    • Control behavior of a task

      Tags are a general purpose tool that allows a custom trait to be associated with a sequence of animation frames. Queries support tags directly by allowing to include or exclude animation frames based on the associated tags.

      Tags can also be accessed directly given a reference to the runtime asset and therefore tasks can perform any kind of custom processing based on them.

    Fields

    firstFrame

    Denotes the first frame this tag refers to.

    Declaration
    public int firstFrame
    Field Value
    Type Description
    Int32

    intervalIndex

    Denotes the first interval index for this tag.

    Declaration
    public Binary.IntervalIndex intervalIndex
    Field Value
    Type Description
    Binary.IntervalIndex
    See Also
    Binary.Interval

    numFrames

    Denotes the number of frames this tag refers to.

    Declaration
    public int numFrames
    Field Value
    Type Description
    Int32

    numIntervals

    Denotes the number of intervals this tag belongs to.

    Declaration
    public int numIntervals
    Field Value
    Type Description
    Int32

    segmentIndex

    Denotes the segment this tag belongs to.

    Declaration
    public Binary.SegmentIndex segmentIndex
    Field Value
    Type Description
    Binary.SegmentIndex

    traitIndex

    Denotes the associated trait.

    Declaration
    public Binary.TraitIndex traitIndex
    Field Value
    Type Description
    Binary.TraitIndex

    Properties

    FirstFrame

    Denotes the first frame this tag refers to.

    Declaration
    public int FirstFrame { get; }
    Property Value
    Type Description
    Int32

    NumFrames

    Denotes the number of frames this tag refers to.

    Declaration
    public int NumFrames { get; }
    Property Value
    Type Description
    Int32

    OnePastLastFrame

    Denotes the one-past-last frame this tag refer to.

    Declaration
    public int OnePastLastFrame { get; }
    Property Value
    Type Description
    Int32

    See Also

    Binary.Marker
    Binary.Trait
    Query
    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