Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

GUIUtility.RotateAroundPivot

public static void RotateAroundPivot(float angle, Vector2 pivotPoint);

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.

no example available in C#

Did you find this page useful? Please give it a rating: