API ReferenceecsdefineState()initial()On this pageinitial() ecs.defineState(name).initial() Description Mark this state as the initial state of the state machine Parameters None.