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

    Struct Binary.Segment

    An segment contains information about animation frames that have been extracted from the supplied animation clips during the build process.

    Namespace: Unity.Kinematica
    Syntax
    public struct Segment
    Remarks

    Collections of continuous animation frames that have been tagged with at least a single tag will be stored in the runtime asset during the build process. These continuous sequences are denoted as segments and the respective metadata is accessible in the runtime asset.

    Fields

    destination

    Denotes the sequence of frames relative to the motion library stored in the runtime asset.

    Declaration
    public Binary.Segment.Interval destination
    Field Value
    Type Description
    Binary.Segment.Interval

    intervalIndex

    Denotes the first interval that this segment contains.

    Declaration
    public Binary.IntervalIndex intervalIndex
    Field Value
    Type Description
    Binary.IntervalIndex

    markerIndex

    Denotes the first marker that this segment contains.

    Declaration
    public Binary.MarkerIndex markerIndex
    Field Value
    Type Description
    Binary.MarkerIndex

    nameIndex

    Denotes the name of the animation clip this segment has been created from.

    Declaration
    public int nameIndex
    Field Value
    Type Description
    Int32
    See Also
    GetString(Int32)

    nextSegment

    Denotes the "right boundary" segment defined for this segment.

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

    numIntervals

    Denotes the number of intervals that this segment contains.

    Declaration
    public int numIntervals
    Field Value
    Type Description
    Int32

    numMarkers

    Denotes the number of markers that this segment contains.

    Declaration
    public int numMarkers
    Field Value
    Type Description
    Int32

    numTags

    Denotes the number of tags that have been associated with this segment.

    Declaration
    public int numTags
    Field Value
    Type Description
    Int32

    previousSegment

    Denotes the "left boundary" segment defined for this segment.

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

    source

    Denotes the sequence of frames relative to the original animation clip.

    Declaration
    public Binary.Segment.Interval source
    Field Value
    Type Description
    Binary.Segment.Interval

    tagIndex

    Denotes the first tag this segment has been associated with.

    Declaration
    public Binary.TagIndex tagIndex
    Field Value
    Type Description
    Binary.TagIndex

    See Also

    Binary.Segment.Interval
    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