Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Dropdown error

$
0
0
hello there :) im using js public var dropbox : GameObject; function Start () { dropbox = transform.Find("Dropdown").gameObject; Debug.Log(dropbox.GetComponent.().OptionData.text); } Unity give me that error... what is wrong with "text"? its not my variable, its unity's. Assets/scripts/apply_script.js(40,67): BCE0020: An instance of type 'UnityEngine.UI.Dropdown.OptionData' is required to access non static member 'text'. thanks

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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