- Home /
Instantiate a 2d Pop up
Hello everyOne, I need to display the score everytime the player does an action. Its a map game, so the user has to click at the position of the asked city(similar consept as Traveler IQ game), so whenever he clicks the distance difference is calculated and I need to display a 2D popup, see the picture below from game "Traveler IQ",![alt text][1] [1]: http://answers.unity3d.com/storage/temp/1283-ex.jpg , so is it a GuiTextures and GuiTexts displaying above each other? I tried adding several GuiTextures and GuiTexts to prefab, but couldn't. Any hint? don't know where to start!
Answer by Berenger · Jun 17, 2012 at 09:17 PM
I suggest you try to take a look at Unity's GUI stystem. Typically, this would be a GUI.Window.
Thanks dude, well I see GUI.Window and GUILayout.Window , what's the difference between them?
All the GUI stuff you can be drawn either with GUI.XXX or GUILayout.XXX. The diference between the two is that with GUI., you need to specify the Rect whereas with GUILayout you specify an area and everything inside just adjust itself.
Concerning GUI.Window and GUILayout.Window, it depends if you want to use GUI or GUILayout inside.
thank you! I read the documentation about both! GUI.Window works fine with me
Your answer
Follow this Question
Related Questions
GUITextures not lining up correctly 2 Answers
Reduce Draw call for Multiple GUI Textures with same Texture 1 Answer
Instantiate an array of prefabs? 0 Answers
Replacing letters with images? 1 Answer
Creating a Multiple Choice Game 2 Answers