Mostly Harmless

UE3:AnimNode (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> AnimNode
Package: 
Engine
Direct subclasses:
AnimNodeBlendBase, AnimNodeSequence
This class in other games:
UDK

Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

Properties

Property group 'AnimNode'

bSkipTickWhenZeroWeight

Type: bool

Allows for optimisiation. Tick is not called on this node if

bTickDuringPausedAnims

Type: bool

If TRUE, this node will be ticked, even if bPauseAnims is TRUE on the SkelMeshComp.

NodeName

Type: name

This is the name used to find an AnimNode by name from a tree.

Internal variables

bCachedHasRootMotion

Type: int

Modifiers: transient

Cached bool indicating if node supplies root motion, to avoid recalculating (see above).

bJustBecameRelevant

Type: bool

Modifiers: transient, const

set to TRUE when this node became relevant this round of updates. Will be set to false on the next tick.

bRelevant

Type: bool

Modifiers: transient, const

This node is considered 'relevant' - that is, has >0 weight in the final blend.

CachedBoneAtoms

Type: array<BoneAtom>

Modifiers: transient

If a node is linked to more than once in the graph, this is a cache of the results, to avoid re-evaluating the results.

CachedRootMotionDelta

Type: BoneAtom

Modifiers: transient

Cached root motion delta, to avoid recalculating (see above).

DrawHeight

Type: int

For editor use

DrawWidth

Type: int

For editor use.

InstanceVersionNumber

Type: int

Modifiers: const

Obsolete. Remove me sometime after VER_AIMOFFSET_ROT2QUAT has been long distributed.

NodeCachedAtomsTag

Type: int

Modifiers: transient, const

Used to indicate whether the BoneAtom cache for this node is up-to-date or not.

NodePosX

Type: int

For editor use.

NodePosY

Type: int

For editor use.

NodeTickTag

Type: int

Modifiers: transient, const

Used to avoid ticking a node twice if it has multiple parents.

NodeTotalWeight

Type: float

Modifiers: const

Total apparent weight this node has in the final blend of all animations.

OutDrawY

Type: int

For editor use.

ParentNodes

Type: array<AnimNodeBlendBase>

Modifiers: transient

Parent node of this AnimNode in the blend tree.

SearchTag

Type: int

Modifiers: const, transient, protected

used when iterating over nodes via GetNodes() and related functions to skip nodes that have already been processed

SkelComponent

Type: SkeletalMeshComponent

Modifiers: transient

SkeletalMeshComponent that this animation blend tree is feeding.

TotalWeightAccumulator

Type: float

Modifiers: const, transient

internal. Accumulator to calculate NodeTotalWeight

Enums

ESliderType

Enumeration for slider types

ST_1D 
ST_2D 

Structs

BoneAtom

Bone Atom definition

Object.Quat Rotation 
Object.Vector Translation 
float Scale 

Functions

Native functions

FindAnimNode

native final function AnimNode FindAnimNode (name InNodeName)

Find an Animation Node in the Animation Tree whose NodeName matches InNodeName. Will search this node and all below it. Warning: The search is O(n^2), so for large AnimTrees, cache result.

PlayAnim

native function PlayAnim (bool bLoop, float Rate, float StartTime)


StopAnim

native function StopAnim ()


Events

OnBecomeRelevant

event OnBecomeRelevant ()

Get notification that this node has become relevant for the final blend. ie TotalWeight is now > 0

OnCeaseRelevant

event OnCeaseRelevant ()

Get notification that this node is no longer relevant for the final blend. ie TotalWeight is now == 0

OnInit

event OnInit ()

Called from InitAnim. Allows initialisation of script-side properties of this node.