Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Unity for Architectural Visualization

You're reading from  Unity for Architectural Visualization

Product type Book
Published in Sep 2013
Publisher Packt
ISBN-13 9781783559060
Pages 144 pages
Edition 1st Edition
Languages
Author (1):
Stefan Boeykens Stefan Boeykens
Profile icon Stefan Boeykens

Displaying basic text/information on the screen


When giving feedback to the user, you can display text or images on screen. They are often placed as an overlay on top of the rest of the scene.

  1. The simplest, but static approach is using a GUITexture or GUIText (GameObject | Create Other | GUI Text or GUI Texture), as shown in the following screenshot:

  2. The Transform component works a bit differently from regular 3D positioning. They are expressed in Screen space, with X going horizontal from 0 (left) to 1 (right), and Y vertical from 0 (below) to 1 (top). Place the text at 5 pixels from the upper left corner, by setting the Transform position to X = 0, Y = 1 and the Pixel Offset in the GUI Text component at X = 5 and Y = -5.

  3. To place a fixed image (for example, a Logo), follow the same approach: Transform position and Pixel Inset. The image should be loaded first as a 2D Texture (simply dragging any image into Unity suffices).

Beware that they are not the most efficient, performance-wise and you...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $19.99/month. Cancel anytime}