Свойство | Тип | Описание | |
---|---|---|---|
handle | ushort | ||
keyFrameList | KeyFrameList | ||
maxKeyFrameTime | float | ||
parent |
Метод | Описание | |
---|---|---|
Apply ( float time ) : void |
Overloaded Apply method.
|
|
Apply ( float time, float weight, bool accumulate, float scale ) : void |
Applies an animation track to the designated target.
|
|
CreateKeyFrame ( float time ) : |
Creates a new KeyFrame and adds it to this animation at the given time index. It is better to create KeyFrames in time order. Creating them out of order can result in expensive reordering processing. Note that a KeyFrame at time index 0.0 is always created for you, so you don't need to create this one, just access it using KeyFrames[0]; |
|
CreateKeyFrameImpl ( float time ) : |
Create a keyframe implementation - must be overridden
|
|
GetInterpolatedKeyFrame ( float time, |
Gets a KeyFrame object which contains the interpolated transforms at the time index specified. The KeyFrame objects held by this class are transformation snapshots at discrete points in time. Normally however, you want to interpolate between these keyframes to produce smooth movement, and this method allows you to do this easily. In animation terminology this is called 'tweening'. |
|
GetKeyFramesAtTime ( float time, |
Gets the 2 KeyFrame objects which are active at the time given, and the blend value between them. At any point in time in an animation, there are either 1 or 2 keyframes which are 'active', 1 if the time index is exactly on a keyframe, 2 at all other times i.e. the keyframe before and the keyframe after. |
|
GetTransformKeyFrame ( int index ) : |
Creates a new KeyFrame and adds it to this animation at the given time index.
|
|
HasNonZeroKeyFrames ( ) : bool |
Method to determine if this track has any KeyFrames which are doing anything useful - can be used to determine if this track can be optimised out.
|
|
OnKeyFrameDataChanged ( ) : void |
Called internally when keyframes belonging to this track are changed, in order to trigger a rebuild of the animation splines.
|
|
Optimise ( ) : void |
Optimise the current track by removing any duplicate keyframes.
|
|
RemoveAllKeyFrames ( ) : void |
Removes all key frames from this animation track.
|
|
RemoveKeyFrame ( int index ) : void |
Removes the keyframe at the specified index.
|
Метод | Описание | |
---|---|---|
AnimationTrack ( |
Internal constructor, to prevent direction instantiation. Should be created via a call to the CreateTrack method of an Animation.
|
|
AnimationTrack ( |
public abstract Apply ( float time, float weight, bool accumulate, float scale ) : void | ||
time | float | The time position in the animation to apply. |
weight | float | The influence to give to this track, 1.0 for full influence, /// less to blend with other animations. |
accumulate | bool | Don't make weights relative to overall weights applied, /// make them absolute and just add. |
scale | float | The scale to apply to translations and scalings, useful for /// adapting an animation to a different size target. |
Результат | void |
public CreateKeyFrame ( float time ) : |
||
time | float | Time within the animation at which this keyframe will lie. |
Результат |
public abstract CreateKeyFrameImpl ( float time ) : |
||
time | float | |
Результат |
public abstract GetInterpolatedKeyFrame ( float time, |
||
time | float | The time (in relation to the whole animation sequence) |
kf | Keyframe object to store results | |
Результат |
public GetKeyFramesAtTime ( float time, |
||
time | float | The time index in seconds. |
keyFrame1 | Receive the keyframe just before or at this time index. | |
keyFrame2 | Receive the keyframe just after this time index. | |
firstKeyIndex | short | If supplied, will receive the index of the 'from' keyframe incase the caller needs it. |
Результат | float |
public GetTransformKeyFrame ( int index ) : |
||
index | int | |
Результат |
public RemoveKeyFrame ( int index ) : void | ||
index | int | Index of the keyframe to remove from this track. |
Результат | void |