- Home /
How can I get a popup window to follow the cursor?
Hello all,
I should preface this question by stating that I am very new to the world of Unity and JavaScript.
So far, I have a scene where I can click on various objects and each pulls up its own popup window displaying information. The issue is that I have so far had to hard-code the position of each popup window. I would like to use the mouse's position to determine the window position. I've tried using mousePosition.x and mousePosition.y in the GUIWindow's position parameters but the positions stay at 0.
Any help would be greatly appreciated.
Thanks, Shiva
Your answer
Follow this Question
Related Questions
problem with a pop-up window 1 Answer
Android native popup window 4 Answers
Can I somehow Screen.lockCursor off center instead of the center of the screen? (Oculus) 0 Answers
Get mouse position in Editor based on screen coordinates 1 Answer
Window prompt not showing when using MSAL .NET library 0 Answers