- Home /
Question by
PhoenixBlackReal · Sep 22, 2013 at 01:52 PM ·
scale
Positioning a scalable textures
I've got a texture that is being scaled through code, it works as a health bar. The problem is that while it works, it's off the needed location a bit. No matter how I change the numbers the problem is still there or the texture is being cropped at both ends.
GUI.BeginGroup(new Rect(0,0, 360*changedHealth/100f, 105)); GUI.DrawTexture(new Rect(0,0, 360, 105), mainTexture, ScaleMode.ScaleAndCrop); GUI.EndGroup();
Comment
Your answer
Follow this Question
Related Questions
Is there a way to Scale Root Motion with the model? 0 Answers
Scale box collider to camera view? 2 Answers
use iPhoneUtils.PlayMovie. Change size? 0 Answers
Tree creator and terrain editor 0 Answers