Skip to content

AnimationParameters.GetTrigger(string) Method

Definition

Namespace: Brine2D.Animation

Reads and consumes a trigger. Returns true exactly once after SetTrigger(string) was called, then resets to false automatically.

public bool GetTrigger(string name);

Parameters

name System.String

Returns

System.Boolean

Remarks

The trigger is consumed immediately regardless of any surrounding boolean expression. Use IsTriggerArmed(string) for non-consuming checks.