Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


useGUILayout

Disabling this lets you skip the GUI layout phase.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool useGUILayout { get; set; }

Remarks

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

Examples

using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour{ public void Start() { //Disabling this lets you skip the GUI layout phase. useGUILayout = false; }}