Check out example codes for "error CS0246: The type or namespace name 'Slider' could not be found (are you missing a using directive or an assembly reference?)". It will help you in understanding the concepts better.

Code Example 1

using UnityEngine.UI;

Learn ReactJs, React Native from akashmittal.com