Skip to content

SwitchIntClipData

Class Documentation

Edit documentation

A clip that plays one child, chosen by an integer from a logic driver. Each child has a value, and the child whose value equals the driver's result plays.

It runs like every condition clip, see ConditionBoolClipData: one child at a time, chosen at the start, and chosen again every frame only with ChangeAnimationMidPlay.

When no child has the driver's value, nothing starts. The clip then reads the driver again every frame until a value matches. A child that already plays keeps playing.

Properties

ChangeAnimationMidPlay

Bool = false
Edit documentation

Lets the clip switch to another child while it plays. Same as ConditionBoolClipData.mChangeAnimationMidPlay, except that the clip also switches while the current child is being faded out.

ChildAnimDelaySwitchTime

F32 = 0
Edit documentation

How long the new choice must hold before the clip switches, in seconds. Same as ConditionBoolClipData.mChildAnimDelaySwitchTime.

DontStompTransitionClip

Bool = false
Edit documentation

Keeps a transition clip that already plays. Same as ConditionBoolClipData.DontStompTransitionClip.

PlayAnimChangeFromBeginning

Bool = false
Edit documentation

Starts the new child at its beginning on a switch. Same as ConditionBoolClipData.mPlayAnimChangeFromBeginning.

SyncFrameOnChangeAnim

Bool = false
Edit documentation

Changes the start position that a switch takes from the old child. Same as ConditionBoolClipData.SyncFrameOnChangeAnim.

driver

Pointer<ILogicIntDriver> = null
Edit documentation

The source of the integer. The client evaluates it each time it makes a choice, for the object that owns the animation graph.