Vixen
02b45cc4
csharp
public readonly record struct AnimationCondition

One test a transition has to pass.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Greater and Less are strict, and there is no GreaterOrEqual. Unity's set, and for a reason worth keeping: a graph whose transitions fire on exact equality of a float is a graph that works until the value arrives as 0.30000001. Equality is offered for whole numbers only, where it means something.

A trigger is not read here. IsSatisfied peeks at it, because a transition with three conditions must not consume a trigger when the other two fail. The consumption happens in Consume, which only the transition that was actually taken calls.

Fields and properties (3)

  • public int Parameter

    The index of the parameter being tested.

  • public AnimationConditionMode Mode

    How it is compared.

  • public float Threshold

    What it is compared against. Ignored by If and IfNot.

Methods (5)

Used by (4)

  • AnimationTransitionVixen.Animation
  • StateMachineTestsVixen.Animation.Tests
  • AnimationGraphCompilerVixen.Editor.AnimationGraph
  • AnimationGraphTestsVixen.Editor.AnimationGraph.Tests