Struct Binary.Interval
An interval contains information about a sequence of animation frames that collectively share the same set of tags.
Namespace: Unity.Kinematica
Assembly: solution.dll
Syntax
public struct Binary.Interval
Remarks
The runtime asset building process only considers animation frames that are tagged with at least a single trait. Continuous sequences of such frames are arranged into segments. Segments in turn can contain multiple intervals with different traits applied. Intervals are therefore defined to be sequences of animation frames that collectively share the same set of tags.
Fields
Name | Description |
---|---|
code |
Denotes the associated code book. |
first |
Denotes the first frame of the sequence of frames relative to the segment. |
num |
Denotes the number of sequence frames relative to the segment. |
segment |
Denotes the segment this interval belongs to. |
tag |
Association with list of tags that are defined over this interval. |
Properties
Name | Description |
---|---|
one |
Denotes the end frame of the sequence of frames relative to the segment. |
time |
Denotes a time index corresponding to the first frame of the interval. |
Methods
Name | Description |
---|---|
Contains(int) | Determines whether or not the given frame index is contained in the interval. |
Contains(Time |
Determines whether or not the given time index is contained in the interval. |
Get |
Creates a time index relative to the beginning of the interval. |