Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Codewalker on April 25, 2014, 03:31:09 AM
-
Hello.
In my project I have attached a NGUI 3D GUI to a fast moving object (a spaceship). The main camera is also attached to the spaceship. When not moving, the 3D GUI works as expected, but as soon as I start moving (starting at a velocity of ~20) I cannot use any controls, no hover effects are triggered etc. . As soon as I stop, the GUI works fine again. The ship is moved via a rigidbody and I use 50 physics updates per second. How can I get rid of this lag and use my GUI in flight?
Regards
Thomas
-
You should not attach GUI to moving things.
You need to set up a separate camera to draw the GUI. I did that in SGSK (Space Game Starter Kit). One camera draws the spaceship, but the GUI camera (which is separate) is stationary and doesn't move.