uGUI element component names? 4.6 Beta

What are the names of the new GUI system elements? Because I’m trying to set the button property of a uGUI element to disabled, but I don’t know what “Component” I should get.

heres an example from one of my scripts to get the text of the new guy system. I hope this helps you.

using UnityEngine.UI;
public Text HealthText;
public Text NameText;
HealthText.gameObject.SetActive(true);
NameText.gameObject.SetActive(true);
HealthText.text = ShipLife.ToString();
NameText.text = gameObject.name.ToString();

From the UnityEngine.UI namespace:

  • Text
  • Toggle
  • Slider
  • Scrollbar
  • InputField
  • Image
  • Button

And probably some others.