Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

HumanTrait.MuscleName

Switch to Manual
public static var MuscleName: string[];

Description

Array of the names of all human muscle types defined by Mecanim.

function Start() {
	var muscleName: String[] = HumanTrait.MuscleName;
	
	for (var i = 0; i < HumanTrait.MuscleCount; i++) {
		Debug.Log(muscleName[i]);
	}
}