Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

MonoBehaviour.useGUILayout

Switch to Manual
public var useGUILayout: bool;

Description

Disabling this lets you skip the GUI layout phase.

It can only be used if you do not use GUI.Window and GUILayout inside of this OnGUI call.

#pragma strict
public function Start() {
	//Disabling this lets you skip the GUI layout phase.
	useGUILayout = false;
}