Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

EditorGUIUtility.IconContent

public static GUIContent IconContent(string name, string tooltip = null);

Parameters

name Content name.
tooltip Tooltip.

Description

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