Hello *,
I have made a menue and now I want to enable / disable the pages.
For this I have createe e.g. 3 empty GameObjects (named menu01 … menu03). Every GameObject contains several 3D Text etc.
The main Scripts which is attached to the camera has an array menuPage: GameObjects[ ];
In the inspector I have droppen:
menu00 into menuPage[0],
menu01 into menuPage[1],
etc.
Now, when the page should change I’d like to use:
menuPage[iMenu].active = false;
menuPage[iNewMenu].active = true;
iMenu = iNewMenu;
but this won’t work.
Please can you tell me how to activate / deactivate a GameObject with all childs?
Thank you very much,
Ulrich