- Home /
Question by
Mr.Happy · Dec 07, 2014 at 10:07 PM ·
uislidernamespacehorizontal-slider
Trying to access the Slider component
im trying to access the Slider component but there's no Slider component apparently:
using UnityEngine;
using System.Collections;
public class QSlider : MonoBehaviour {
private float slider;
void Start()
{
slider = GetComponent<Slider>();
}
}
and the error is:
And finally the inspector...
Thanks!
error.png
(4.9 kB)
capture.png
(31.8 kB)
Comment
Your answer
Follow this Question
Related Questions
GUI slider and rotation not working 1 Answer
move object with slider 1 Answer
create custom Horizontal slider 2 Answers
HIdden cursor slider issue 1 Answer