最終更新:2019-12-02 (月) 21:26:14 (1599d)  

Transform.Find
Top / Transform.Find

Finds a child by n and returns it.

public Transform Find (string name);

https://docs.unity3d.com/jp/current/ScriptReference/Transform.Find.html

戻り値

  • The returned child transform or null if no child is found

メモ

  • GameObject.Findは重い処理なので子オブジェクトを取得するときはこちらを使うと良い

GameObjectの取得

関連