Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Selectable.IsInteractable

Switch to Manual
public function IsInteractable(): bool;

Description

UI.Selectable.IsInteractable.

#pragma strict
// required when using UI elements in scripts
public class Example {
	public var startButton;
	function Update() {
		if (!startButton.IsInteractable()) {
			Debug.Log("Start Button has been Disabled");
		}
	}
}