How can I organize menus as a tree hierarchy?
Hi everyone!
Up until now, I have always put all my canvases on the same hierarchal level, and would just enable and disable them on click. This way, however, really doesn't seem efficient for larger menu structures.
I would like to know how I should proceed if I want to have submenus that are all children of one menu so that, if I want to go one screen back, the script only has to get the parent of the current menu instead of having to go through all canvases to find it.
I have tried putting a canvas as a component of another, but it seems to cause problems when I try to enable the child. Should I put the canvases under an empty Game Object on which I attached the script? I am fairly confused, so I would really appreciate some help!
Your answer
Follow this Question
Related Questions
Having constant trouble with Unity's inbuilt UI system. 2 Answers
Unity CanvasGroup's alpha is set to 0 when Instantiate 0 Answers
Game Object not Showing Up Outside of Canvas 0 Answers
Offset between mouse cursor position and "hit" position with worldspace UI's 1 Answer
UI penetration through objects. 1 Answer