StateBehavior
An inline IStateBehavior built from a pair of delegates, for one-off behaviors that do not warrant a dedicated type.
Methods
OnStateApplied
1 parameter
Called once when the state becomes active on the given target.
Animatable target The target the state was applied to.
OnStateRemoved
1 parameter
Called once when the state is removed from the given target; should undo IStateBehavior.OnStateApplied.
Animatable target The target the state was removed from.
Constructors
StateBehavior
2 parameters
An inline IStateBehavior built from a pair of delegates, for one-off behaviors that do not warrant a dedicated type.
Action<Animatable> onStateApplied The action to run when the state is applied.
Action<Animatable> onStateRemoved The action to run when the state is removed; should undo the apply action.
No member matches that name.