GKState.WillExit(GKState) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called immediately prior to the StateMachine transitioning to nextState
.
[Foundation.Export("willExitWithNextState:")]
public virtual void WillExit (GameplayKit.GKState nextState);
abstract member WillExit : GameplayKit.GKState -> unit
override this.WillExit : GameplayKit.GKState -> unit
Parameters
- nextState
- GKState
- Attributes
Remarks
When this is called, the CurrentState property of the StateMachine is still set to this GKState. Upon exit, that property changes to nextState
and nextState
's DidEnter(GKState) method is called.'