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
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 |