Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

EditorGUIUtility.GetIconSize

static function GetIconSize(): Vector2;
static Vector2 GetIconSize();
static def GetIconSize() as Vector2

Description

Get the size that has been set using SetIconSize.

The default size is Vector2.zero where the size is determined by the available space.

See Also: SetIconSize.