Hello,
I have tried this code…
child.GameObject.setActive (true);
or something like it. But I know whatever it was is correct for usual circumstances.
I have just removed the code as it doesn’t work for the circumstance I wish it to work for. It just creates compiler errors (I apologise for not uploading them but I didn’t see the point as I first need to adjust this code to somehow access hierarchy components when not attached to them through a pre-existing script). I am trying to activate a child named “Button1” in a gameobject called “GameObject2”. How can I do this from a script which IS NOT attached to either of these items as it is attached to another button that will run when clicked?
Thanks - Any help would be much appreciated!