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++; } } }