av3-animator-as-code icon indicating copy to clipboard operation
av3-animator-as-code copied to clipboard

Calling Or() on a TransitionsFromEntry() fails with an exception

Open hai-vr opened this issue 1 year ago • 0 comments

var mainSubStateMachine = layer.NewSubStateMachine("Main");
mainSubStateMachine.Restarts();

var state = mainSubStateMachine.NewState("S1");

state.TransitionsFromEntry()
    .When(rightTrackPadParamBool.IsFalse())
    .Or()
    .When(rightAButtonParamBool.IsTrue());

InvalidOperationException: _sourceNullableIfAny is not null but does not contain an AnimatorStateMachine

Reported on: https://discord.com/channels/923123027879813150/946570418892988457/1205619208822591579

hai-vr avatar Feb 10 '24 05:02 hai-vr