Table of Contents

Enum AnimationMixer.AnimationCallbackModeDiscrete

Namespace
Godot
Assembly
GodotSharp.dll
public enum AnimationMixer.AnimationCallbackModeDiscrete : long

Fields

Dominant = 0

An Discrete track value takes precedence when blending Continuous or Capture track values and Discrete track values.

ForceContinuous = 2

Always treat the Discrete track value as Continuous with Nearest. This is the default behavior for AnimationTree.

If a value track has un-interpolatable type key values, it is internally converted to use Recessive with Discrete.

Un-interpolatable type list:

- Nil

- NodePath

- Rid

- Object

- Callable

- Signal

- Dictionary

- PackedByteArray

Bool and Int are treated as Float during blending and rounded when the result is retrieved.

It is same for arrays and vectors with them such as PackedInt32Array or Vector2I, they are treated as PackedFloat32Array or Vector2. Also note that for arrays, the size is also interpolated.

String and StringName are interpolated between character codes and lengths, but note that there is a difference in algorithm between interpolation between keys and interpolation by blending.

Recessive = 1

An Continuous or Capture track value takes precedence when blending the Continuous or Capture track values and the Discrete track values. This is the default behavior for AnimationPlayer.