Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DefineState()

Defines the structure of the state by building its options.
Read time 1 minuteLast updated 13 days ago

Definition

public void DefineState()

Remarks

This method calls State.OnDefineOptions to allow custom definition of the state. It does nothing when the state is not part of a State.StateMachine.

Examples

public class MyState : State{ public override void OnEnable() { DefineState(); }}