- Home /
3d object button with a pop up window
can anyone help me I'm creating a game and i need help. i want to be able to click on a 3D object (box, plane stuff like that) and a windows GUI (texture jpg) will pop up and with a x for a close button. could do with help to make this happen pls
3d object button with a pop up window
What have you got to work so far? There is more than one question here, and no specific problem with code you have written. Try the forums for general help, or break down the question into steps and attack one at a time =]
1/ What 3D object am I clicking on?
2/ How to show a GUI window, with text and/or image?
3/ Detect GUI window has been closed
To start you off, how about learning raycasting and getting information from that raycast to detect different objects. Read the Script References for some examples :
http://docs.unity3d.com/Documentation/ScriptReference/Physics.Raycast.html
http://docs.unity3d.com/Documentation/ScriptReference/Input-mousePosition.html
http://docs.unity3d.com/Documentation/Components/GUIScriptingGuide.html
http://docs.unity3d.com/Documentation/Components/gui-Basics.html
Your answer
Follow this Question
Related Questions
ArgumentException: Getting control 0's position in a group with only 0 controls when doing Repaint 0 Answers
How do I make a GUI menu that pops up? 2 Answers
How will i get new line in window data? 1 Answer
GUI.Window error. InvalidOperationException: Hashtable.Enumerator: snapshot out of sync. 0 Answers
Are dockable windows possible in-game. 2 Answers