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.

ScrollRect.IsActive

Switch to Manual
public function IsActive(): bool;

Description

See member in base class.

#pragma strict
// Required when Using UI elements.
public var myScrollRect;
public function Start() {
	//Checks if the ScrollRect called "myScrollRect" is active.
	if (myScrollRect.IsActive()) {
		Debug.Log("The Scroll Rect is active!");
	}
}