文档

Unity Engine

Unity Engine

HasState(int, int)

Returns true if the state exists in this layer, false otherwise.
阅读时间1 分钟最后更新于 1 个月前

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.