Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HasState(int, int)

Returns true if the state exists in this layer, false otherwise.
Read time 1 minuteLast updated 6 days ago

Definition

public bool HasState(int layerIndex, int stateID)

Parameters

layerIndex

The layer index.

stateID

The state ID.

Returns

Type

Description

boolTrue if the state exists in this layer, false otherwise.