Hello everyone.
I was looking into a name display system for planets in my game. I was looking into ‘widget components’, and under the ‘UI’, there is a ‘space’ setting where you can choose either World or Screen. The effect I am wanting is sort of a mix of the two. I want the text to lock to the screen and always face the player (as is done using the ‘space’ setting), however I want the text to be occluded when a planet is drawn in front of it (as is done using the ‘world’ setting). Is there a way to occlude a widget that is drawn behind another object while its UI space setting is set to ‘screen’?
Here you can see the settings I am using for my widget component.
And here you can see the names of Venus and Mercury being rendered over the planet Earth.
Is there a setting within the widget component that I’m not aware of, or is this something not supported by the current widget setup and I’d have to find a work around to the problem?
Thanks in advance everyone!