Quantcast
Channel: Answers by "Superrodan"
Viewing all articles
Browse latest Browse all 62

Answer by Superrodan

$
0
0
I think what you may want to do is have code like this pseudo-code below on the object you want to update the information in the slider: private Slider health; private Slider mana; private Slider thirdThing; public float healthValue; public float manaValue; public float thirdThingValue; void Start() { health = GameObject.Find("Slider1Name").GetComponent(); mana = GameObject.Find("Slider2Name").GetComponent(); thirdThing = GameObject.Find("Slider3Name").GetComponent(); } Update() { health.value = healthValue; mana.value = manaValue; thirdThing.value = thirdThingValue; }

Viewing all articles
Browse latest Browse all 62

Trending Articles



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