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
↧