Hello all, I've noticed that all the billboard scripts here: http://wiki.unity3d.com/index.php?title=CameraFacingBillboard have really weird rotation when using an RTS camera... so I threw this together and thought I'd share. Code (csharp): // RTSBillboard.cs using UnityEngine; public class RTSBillboard : MonoBehaviour { Quaternion offset = Quaternion.Euler(-270, 0, 0); void Awake(){ } void Update(){ Transform cam = Camera.main.transform; Quaternion rot = cam.rotation*offset; transform.rotation = rot; } } The other billboards are excellent for a grounded / first person camera, but they just don't work for things like health bars on units. Feel free to optimize. I've only been learning C# for a couple of weeks -- I expect criticism.
What kind of billboard would you use for something like an image of a tree, rather than actual models?
I think you'd probably stick with one of the conventional billboards on the Wiki, as it might look a bit silly for the base of the tree to detach from the ground as the camera increases the height angle.