Manual     Reference     Scripting  
  
Scripting > Runtime Classes > GUIUtility   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • GUIUtility
  • All Members
  • Class Variables
  • hotControl
  • keyboardControl
  • Class Functions
  • GetControlID
  • GetStateObject
  • GUIToScreenPoint
  • QueryStateObject
  • RotateAroundPivot
  • ScaleAroundPivot
  • ScreenToGUIPoint

GUIUtility.GetStateObject  

static function GetStateObject (t : Type, controlID : int) : object

Description

Get a state object from a controlID.

This will return a recycled state object that is unique for controlID. If there is none already, A new one will be created and hooked up to the ControlID