Array of the names of all human bone types defined by Mecanim.
function Start() { var boneName: String[] = HumanTrait.BoneName; for (var i = 0; i < HumanTrait.BoneCount; i++) { Debug.Log(boneName[i]); } }
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Start() { string[] boneName = HumanTrait.BoneName; int i = 0; while (i < HumanTrait.BoneCount) { Debug.Log(boneName[i]); i++; } } }