- Home /
Is it possible to have a GUI in world space?
I'm trying to make a space shooter and I want to have it viewed in first person, is there a way to make it so that the GUI seems projected onto the interior of the cockpit's screen so that I can look around without the GUI following the camera along with having the perspective change effects (i.e. the edge of the GUI further away from the camera appears smaller than the edge closer to the center of the camera)?
Answer by robertbu · Dec 23, 2013 at 08:07 AM
You can code the GUI to follow a world position, but the it would be difficult or impossible to handle the perspective issue. Why not just do the interface using world objects rather than GUI? You can use 3d Text/TextMesh for the text and Quads for displaying textures.
You know what, I honestly never considered that, that's a great idea! I need to do some experimenting with javascript, but yeah, your idea makes this a whole lot easier. Thanks! :)
Your answer
Follow this Question
Related Questions
2D Arrow pointing at 3D Position 1 Answer
Drawing GUI Text using Javascript 2 Answers
3D ^ Custom GUIText/Label or Making a Score System without using GUI? 0 Answers
3D object in uGUI 3 Answers
2D colliders for a rotating 3D cube 1 Answer