Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

EditorGUIUtility.IconContent

Switch to Manual
public static function IconContent(name: string): GUIContent;
public static function IconContent(name: string, tooltip: string): GUIContent;

Parameters

nameContent name.
tooltipTooltip.

Description

Fetch the GUIContent from the Unity builtin resources with the given name.