Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetBlendShapeIndex(string)

Returns the index of the blend shape with the given name, or -1 if it does not exist.
Read time 1 minuteLast updated 4 days ago

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.