- Home /
Question by
marcoatmac · Oct 03, 2012 at 10:49 AM ·
javascriptguiobjecttouchipad
touch 3d object open gui
Hi, How I can open a window GUI when I touch one 3d object on iPad with javascript please? thanks M
Comment
Answer by Sundar · Oct 03, 2012 at 04:59 PM
you need a boolean say touched3dObject
bool touched3dObject = false;
void Update()
{
... your hit test code
if( 3dObject hit ) touched3dObject = true;
}
void OnGUI()
{
....
if( touched3dObject ) GUI.Window(...);
}
Your answer
Follow this Question
Related Questions
Android touch gui help!!! 2 Answers
Setting Scroll View Width GUILayout 1 Answer
The gui disappears when i let go 2 Answers
How Can I Visually See Touches On Screen? 1 Answer
Touch Detection on Object in javascript 0 Answers