文档

Unity Engine

Unity Engine

GetBlendShapeIndex(string)

Returns the index of the blend shape with the given name, or -1 if it does not exist.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int GetBlendShapeIndex(string blendShapeName)

Parameters

blendShapeName

The name of the blend shape.

Returns

Type

Description

intThe index of the blend shape (0-based), or -1 if not found.

Remarks

Throws an exception if the name is null or empty.