New GUI - Scrollbar Component?

Hey, everyone. Im trying to access the Scrollbar component on one of the new UI objects (Scrollbar). It has a component called ‘Scrollbar’ that im trying to access with GetComponent();

The error I get is that the type or namespace name ‘Scrollbar’ could not be found. Are you missing using a directive or an assembly reference?

Anyone know why I wouldnt be able to access this component in the same way i’ve done numerous others???

thanks!

New UI components are under UnityEngine.UI namespace, so you need to add that with a using statement at the top of each file accessing them

using UnityEngine.UI;

Make sure you added using UnityEngine.UI;