get_states


Description:

[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.8" ) ]
public unowned State get_states (string? name)

Warning: get_states is deprecated since 1.12.

Retrieves the State for the given state_name.

If name is null, this function will return the default State instance.

Parameters:

this

a Script

name

the name of the State, or null

Returns:

a pointer to the State for the given name. The State is owned by the Script instance and it should not be unreferenced