Question by
aydogdu101 · Dec 23, 2016 at 10:45 AM ·
guichildrencloneenable
How to enable a children of a clone object?
I hold my clones in a list for GUI operations.
button = Instantiate(BlackBox, Vector2.zero, Quaternion.identity) as GameObject;
buttons.Add(button);
How to enable ArrowRight in this situation:
I want to reach ArrowRight to enable it. I tried variations of this kind of methods:
buttons[index].gameObject.transform.GetChild(1).gameObject.SetActive(true);
Components here:
How can it be implemented? Thanks.
Comment
Best Answer
Answer by aydogdu101 · Dec 23, 2016 at 06:20 PM
Solved:
buttons[index].transform.GetChild(1).gameObject.SetActive(true);