AnimationNodeAnimation
An input animation for an AnimationNodeBlendTree.
An input animation for an AnimationNodeBlendTree.
A resource to add to an AnimationNodeBlendTree. Only has one output port using the AnimationNodeAnimation.Animation property. Used as an input for AnimationNodes that blend animations together.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
AnimationNodeAnimationConstructor
public AnimationNodeAnimation();Properties8
AdvanceOnStartProperty
public bool AdvanceOnStart { get; set; }If true, on receiving a request to play an animation from the start, the first frame is not drawn, but only processed, and playback starts from the next frame.
See also the notes of AnimationPlayer.Play.
AnimationProperty
public StringName Animation { get; set; }Animation to use as an output. It is one of the animations provided by AnimationTree.AnimPlayer.
LoopModeProperty
public Animation.LoopModeEnum LoopMode { get; set; }If AnimationNodeAnimation.UseCustomTimeline is true, override the loop settings of the original Animation resource with the value.
Note: If the Animation.LoopMode isn't set to looping, the Animation.TrackSetInterpolationLoopWrap option will not be respected. If you cannot get the expected behavior, consider duplicating the Animation resource and changing the loop settings.
PlayModeProperty
public AnimationNodeAnimation.PlayModeEnum PlayMode { get; set; }Determines the playback direction of the animation.
StartOffsetProperty
public double StartOffset { get; set; }If AnimationNodeAnimation.UseCustomTimeline is true, offset the start position of the animation.
This is useful for adjusting which foot steps first in 3D walking animations.
StretchTimeScaleProperty
public bool StretchTimeScale { get; set; }If true, scales the time so that the length specified in AnimationNodeAnimation.TimelineLength is one cycle.
This is useful for matching the periods of walking and running animations.
If false, the original animation length is respected. If you set the loop to AnimationNodeAnimation.LoopMode, the animation will loop in AnimationNodeAnimation.TimelineLength.
TimelineLengthProperty
public double TimelineLength { get; set; }The length of the custom timeline.
If AnimationNodeAnimation.StretchTimeScale is true, scales the animation to this length.
UseCustomTimelineProperty
public bool UseCustomTimeline { get; set; }If true, AnimationNode provides an animation based on the Animation resource with some parameters adjusted.
Methods16
GetAnimationStringName
public StringName GetAnimation();StringNameGetLoopModeAnimation.LoopModeEnum
public Animation.LoopModeEnum GetLoopMode();Animation.LoopModeEnumGetPlayModeAnimationNodeAnimation.PlayModeEnum
public AnimationNodeAnimation.PlayModeEnum GetPlayMode();AnimationNodeAnimation.PlayModeEnumGetStartOffsetdouble
public double GetStartOffset();doubleGetTimelineLengthdouble
public double GetTimelineLength();doubleIsAdvanceOnStartbool
public bool IsAdvanceOnStart();boolIsStretchingTimeScalebool
public bool IsStretchingTimeScale();boolIsUsingCustomTimelinebool
public bool IsUsingCustomTimeline();boolSetAdvanceOnStartvoid
public void SetAdvanceOnStart(bool advanceOnStart);| Name | Type | Default |
|---|---|---|
advanceOnStart | bool | — |
SetAnimationvoid
public void SetAnimation(StringName name);| Name | Type | Default |
|---|---|---|
name | StringName | — |
SetLoopModevoid
public void SetLoopMode(Animation.LoopModeEnum loopMode);| Name | Type | Default |
|---|---|---|
loopMode | Animation.LoopModeEnum | — |
SetPlayModevoid
public void SetPlayMode(AnimationNodeAnimation.PlayModeEnum mode);| Name | Type | Default |
|---|---|---|
mode | AnimationNodeAnimation.PlayModeEnum | — |
SetStartOffsetvoid
public void SetStartOffset(double startOffset);| Name | Type | Default |
|---|---|---|
startOffset | double | — |
SetStretchTimeScalevoid
public void SetStretchTimeScale(bool stretchTimeScale);| Name | Type | Default |
|---|---|---|
stretchTimeScale | bool | — |
SetTimelineLengthvoid
public void SetTimelineLength(double timelineLength);| Name | Type | Default |
|---|---|---|
timelineLength | double | — |
SetUseCustomTimelinevoid
public void SetUseCustomTimeline(bool useCustomTimeline);| Name | Type | Default |
|---|---|---|
useCustomTimeline | bool | — |
AnimationNodeAnimation.PlayModeEnum
| Value | Description |
|---|---|
Backward = 1 | Plays animation in backward direction. |
Forward = 0 | Plays animation in forward direction. |