Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetOptionByName(string)

Retrieves a state option using its name.
Read time 1 minuteLast updated 12 days ago

Definition

IStateOption GetOptionByName(string name)

Parameters

name

The unique name of the option.

Returns

Type

Description

IStateOptionThe option with the specified name, or null if none is found.

Remarks

The option's name is unique within the state's options.