Quantcast
Channel: Answers by "brunopava"
Viewing all articles
Browse latest Browse all 64

Answer by brunopava

$
0
0
You need to use "GetComponent", in doing so you won't need to cast. http://docs.unity3d.com/ScriptReference/GameObject.GetComponent.html mySlider = GameObject.FindGameObjectWithTag("MySliderTag").GetComponent(UnityEngine.UI.Slider);

Viewing all articles
Browse latest Browse all 64

Latest Images

Trending Articles



Latest Images

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