“Comment obtenir un enfant d'un jeu 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 Get Child

GameObject Child;
Child = transform.GetChild(0).gameObject;
Artyom Gabtraupov

Unity Comment obtenir un enfant à partir d'un gameobject

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

Réponses similaires à “Comment obtenir un enfant d'un jeu GameObject”

Questions similaires à “Comment obtenir un enfant d'un jeu GameObject”

Plus de réponses similaires à “Comment obtenir un enfant d'un jeu GameObject” dans C#

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code