Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSubgraphAsStateMachine()

Retrieves the subgraph linked to this state as a StateMachine.
Read time 1 minuteLast updated 15 days ago

Definition

StateMachine GetSubgraphAsStateMachine()

Returns

Type

Description

StateMachineThe StateMachine instance that this state references, or
null
if the referenced subgraph is a regular Graph (use ISubgraphState.GetSubgraphAsGraph instead) or no subgraph is set.