I have a uniquely shaped health progress bar that I need to crop off the top as the health goes down (code below). I'm using ScaleMode.ScaleAndCrop, but when I make the size of the texture smaller, the image is cropped from both the top and the bottom. Is there any way to crop only off the top?
GUI.BeginGroup (new Rect (0, Screen.height -300, 200, 300) );
GUI.DrawTexture(new Rect (0, 300-(health), 200, health), bagFull, ScaleMode.ScaleAndCrop);
GUI.EndGroup ();