hi all sorry for sucha simple question but all the tweaking doesn’t seem to solve it. i have aGUI slider attached to the camera field of view to zoom in and out unforuntaely it always jumps to 15 which is the closest i want when i want it to start at the default position which is 60. HELP PLEASE.
#pragma strict
var hSliderValue : float = 60.0;
function OnGUI ()
{
hSliderValue = GUI.HorizontalSlider (Rect (400, 100, 100, 30), hSliderValue, 60.0, 15.0);
}
function Update ()
{
Camera.main.fieldOfView = hSliderValue;
}