Gui in game object

Gui scenes are by default rendered in screen space and as you’ve already seen it completely ignores the position of the game object it is attached to. This can however be changed quite easily. I have an example that shows how to do this.

In the example I set the Adjust Mode of a gui scene from Per Node to Disable. I also change the material of the gui to have another predicate and use the render script to renderthe gui in the world space of your game objects.

6 Likes