“Unity Comment obtenir un enfant à partir d'un gameobject” Réponses codées

Comment obtenir un enfant d'un jeu GameObject

// By Name
GameObject Child = GameObjectsTransform.Find("NameOfChild").gameObject

// By index
GameObject Child = GameObjectsTransform.GetChild(The child index).gameObject
Obnoxious Oystercatcher

Unity Comment obtenir un enfant à partir d'un gameobject

//For unity engine
GameObject.transform.GetChild(The child index).transform;
Open Oryx

Réponses similaires à “Unity Comment obtenir un enfant à partir d'un gameobject”

Questions similaires à “Unity Comment obtenir un enfant à partir d'un gameobject”

Plus de réponses similaires à “Unity Comment obtenir un enfant à partir d'un gameobject” dans C#

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code