New GUI, needs to rotate.


With the new HP bar system we need a way to rotate the underlying texture.
This means there are two problems that need to be solved.
1) Rotating texture.
2) Texture masking.
Closed Dec 1, 2010 at 3:50 AM by gigaflare
Not currently in scope


gigaflare wrote Jul 5, 2010 at 5:11 AM

To rotate...
void OnGUI ()
GUIUtility.RotateAroundPivot (10.0f, new Vector2(240.0f, 160.0f));
GUI.DrawTexture(new Rect(0.0f, 0.0f, 480.0f, 320.0f), BGTexture, ScaleMode.StretchToFill, true, 0);

gigaflare wrote Jul 29, 2010 at 12:59 AM

Still not sure about texture masking, but we are considering projecting the UI. Lets read on....