August 2018
Intermediate to advanced
794 pages
28h 4m
English
Don't forget that you can personalize the slider's appearance by creating your own sprites, or even by changing the slider's fill color based on the slider's value.
Try adding the following lines of code to the end of the Update function:
GameObject fill = GameObject.Find("Fill").gameObject; Color sliderColor =
Color.Lerp(Color.red, Color.green, remainingTime); fill.GetComponent<Image> ().color = sliderColor;
Read now
Unlock full access