O'Reilly logo

Unity 3D UI Essentials by Simon Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Going deep

So far in both modes of the Screen Space Canvases, we dealt with a UI that was being drawn relative to the entire drawing space of the screen; each of the modes is intended to draw over or against the full screen.

However, in a lot of cases, this is not the desired effect. We want our UI to draw on surfaces, pop up message boxes within (not on) a scene, or even hover over the shoulder of a third-person character (as shown in the aforementioned inventory panel used in games such as Dead Space).

A lot of this is possible today, either using render textures (which require the pro version of Unity), twisting the legacy GUI through code (not very pretty), or using shaders in an intrinsic way (requiring an in-depth knowledge of shaders). All ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required