お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close子の名前で検索をし、取得します
子の名前が見つからない場合、nullを返します。 /name/に'/'が含まれている場合は、パス名として判断されます。
// The magical rotating finger function Update() { aFinger = transform.Find("LeftShoulder/Arm/Hand/Finger"); aFinger.Rotate(Time.deltaTime*20, 0, 0); }