reckfellENGINE

AnimationNodeExtension

Base class for extending AnimationRootNodes from C#, C#, or C++.

On this page
class AnimationNodeExtensionReckfellSharpInherits AnimationNode

Base class for extending AnimationRootNodes from C#, C#, or C++.

AnimationNodeExtension exposes the APIs of AnimationRootNode to allow users to extend it from C#, C#, or C++. This class is not meant to be used directly, but to be extended by other classes. It is used to create custom nodes for the AnimationTree system.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

AnimationNodeExtensionConstructor
# AnimationNodeExtension
C#
public AnimationNodeExtension();

Methods5

GetRemainingTime2 overloads
# GetRemainingTime · 1/2
C#
public static double GetRemainingTime(ReadOnlySpan<float> nodeInfo, bool breakLoop);

Returns the animation's remaining time for the given node info. For looping animations, it will only return the remaining time if break_loop is true, a large integer value will be returned otherwise.

Parameters
NameTypeDefault
nodeInfoReadOnlySpan<float>—
breakLoopbool—
Returns double
# GetRemainingTime · 2/2
C#
public static double GetRemainingTime(float[] nodeInfo, bool breakLoop);

Returns the animation's remaining time for the given node info. For looping animations, it will only return the remaining time if break_loop is true, a large integer value will be returned otherwise.

Parameters
NameTypeDefault
nodeInfofloat[]—
breakLoopbool—
Returns double
IsLooping2 overloads
# IsLooping · 1/2
C#
public static bool IsLooping(ReadOnlySpan<float> nodeInfo);

Returns true if the animation for the given node_info is looping.

Parameters
NameTypeDefault
nodeInfoReadOnlySpan<float>—
Returns bool
# IsLooping · 2/2
C#
public static bool IsLooping(float[] nodeInfo);

Returns true if the animation for the given node_info is looping.

Parameters
NameTypeDefault
nodeInfofloat[]—
Returns bool
_ProcessAnimationNodefloat[]
# _ProcessAnimationNode
C#
public virtual float[] _ProcessAnimationNode(double[] playbackInfo, bool testOnly);

A version of the AnimationNode._Process method that is meant to be overridden by custom nodes. It returns a float[] with the processed animation data. The double[] parameter contains the playback information, containing the following values encoded as floating point numbers (in order): playback time and delta, start and end times, whether a seek was requested (encoded as a float greater than 0), whether the seek request was externally requested (encoded as a float greater than 0), the current Animation.LoopedFlag (encoded as a float), and the current blend weight. The function must return a float[] of the node's time info, containing the following values (in order): animation length, time position, delta, Animation.LoopModeEnum (encoded as a float), whether the animation is about to end (encoded as a float greater than 0) and whether the animation is infinite (encoded as a float greater than 0). All values must be included in the returned array.

Parameters
NameTypeDefault
playbackInfodouble[]—
testOnlybool—
Returns float[]
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.