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 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
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.