Working with multiple windows on the same scene unity
I want to work with multiple windows on the same scene. It's like creating a lot of popup windows on the same scene and then making some visible/invisible when they're needed
To do this, i currently am:
1) Creating a canvas for each window
2) Creating an empty gameobject inside each canvas
3) adding a POPUPWINDOWBEHAVIOR(which i created) to each empty gameobject
3.1) This behavior is something like this:
on the Start() function, i get it's current initial position, then i use transform.localPosition = new Vector3(1000, 1000); to fling the whole window(the empty gameobject and it's children) to a place where the user won't see them
Then, when i need to show the window, i make the object return to initial position
When i need the object to disappear, i fling the whole window(the empty gameobject and it's children) to a place where the user won't see them
4) Create the canvas, empty gameobjects and its children on new layers(always)
5) Make one initial window appear(the one from the lowest layer) and make the other ones appear/disappear whenever i need them
Is there a better way to work with multiple windows on the same scene on unity? I do not want a simple popup window, i want a whole screen
Your answer
Follow this Question
Related Questions
Multiple windows?,Multiple Cameras, Canvases or Pop UPs? 0 Answers
How do I close display window? 0 Answers
Transform parent breaks when window maximised 0 Answers
Null Reference Exception for Custom Editor Window 0 Answers
How to work with Text component on multiple layers (one layer per popup)? 1 Answer