What can i do?
Here is my code:
#pragma strict
var FOV : int;
function Start () {
}
function Update () {
}
function OnGUI ()
{
FOV = GUI.HorizontalSlider (Rect (25, 25, 100, 30), FOV, 65, 120);
}
I just want to display a Horizontal slider, i copyed the code from unity’s website, but it returns an error:
Assets/GUI.js(14,20): BCE0019: ‘HorizontalSlider’ is not a member of ‘GUI’.
I don’t know where is the error!
What can i do?
Thanks