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.RotateAroundPivot  

static function RotateAroundPivot (angle : float, pivotPoint : Vector2) : void

Description

Helper function to rotate the GUI around a point.

Modifies GUI.matrix to rotate all GUI elements angle degrees around pivotPoint.

See Also: GUI.matrix, ScaleAroundPivot