Skip to content

AnimationBlendSelector1D.AddNode(float, string, Nullable) Method

Definition

Namespace: Brine2D.Animation

Adds a node associating a threshold value with a clip name. Nodes are kept sorted by threshold ascending. Evaluates immediately after adding.

public Brine2D.Animation.AnimationBlendSelector1D AddNode(float threshold, string clipName, System.Nullable<float> speed=null);

Parameters

threshold System.Single

The parameter value at which this clip becomes the primary candidate.

clipName System.String

Name of the clip to play when Value is closest to this threshold.

speed System.Nullable<System.Single>

Optional speed override at this threshold. Adjacent nodes with speed overrides interpolate Speed between them. Floored at 0.001 unless AllowZeroSpeed is set.

Returns

AnimationBlendSelector1D