Quantcast
Viewing latest article 5
Browse Latest Browse All 10

Answer by NoTakeful

Ok I figured out another way to do it. It doesn't necessarily get the exact effect I wanted which was masking the top portion and gradually dwindling the mask up, but I got it to hide the bottom of the bar and I was able to move the bar up into full view with this change: #pragma strict var pBarImage : Texture2D; var pBarOutline : Texture2D; var power : float = 0.22; function OnGUI () { GUI.BeginGroup(Rect(Screen.width * 0, Screen.height * -0.004, Screen.width * 0.208 , Screen.height * 0.23 )); GUI.Label(Rect(Screen.width * 0, Screen.height * 0.2 - power, Screen.width * 0.208, Screen.height * 0.24), pBarImage ); GUI.EndGroup(); GUI.Label(Rect(Screen.width * 0, Screen.height * -0.004, Screen.width * 0.208, Screen.height * 0.24), pBarOutline); } then I was able to increase the power variable which basically moved the bar up rather than previously where I wanted to just reveal the top of the bar gradually. Not the same effect but I definitely works without getting overly complicated!

Viewing latest article 5
Browse Latest Browse All 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>