- Home /
Question by
$$anonymous$$ · Nov 29, 2015 at 09:58 AM ·
gameobjecttransformgameobjectsfindchild object
This does not make sense this.gameObject.transform.Find() why?
I want to get the child object of the current object, so it would make sense to do:
T = this.gameObject.Find ("Text");
but instead it makes you go into the transform in order to get child objects. how does that make sense?
T = this.gameObject.transform.Find ("Text");
took me hours to figure this out.
Comment
Answer by ben-rasooli · Nov 29, 2015 at 11:03 AM
This is a question for the forum not here! By the way, you can also just say:
T = transform.Find("text");
insite the script.
Your answer
Follow this Question
Related Questions
Why does this wont work? transfor.find() 1 Answer
Why is the rotation values I am accessing wrong? 2 Answers
Instantiating a new gameObject as a child of a different gameObject 2 Answers
How Should I Get a List of Child Objects 2 Answers
transform.find and Instantiate do not return the same type? 1 Answer