Skip to content

A quick demo of how to billboard things (specifically, text using Unity 4.6 UI)

Notifications You must be signed in to change notification settings

jibberia/UnityBillboardDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity Billboard Demo

Note: this project uses Unity 4.6.1. Created to answer this question.

It has 3 scripts:

  • Rotate: on the sphere. It rotates the sphere.
  • BillboardToCamera: on each Canvas. Makes them always face the camera.
  • FadeAlphaByDistance: on each Text. Makes them fade out when they're far from the camera. Caveat: have to manually set minDistance and maxDistance, values which represent the text's minimum and maximum distances from the camera. Uncomment Debug.Log(distance) and watch the console in the editor to get a sense of appropriate values.

About

A quick demo of how to billboard things (specifically, text using Unity 4.6 UI)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages