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

static function IconContent(name: string): GUIContent;
static GUIContent IconContent(string name);
static def IconContent(name as string) as GUIContent
static function IconContent(name: string, tooltip: string): GUIContent;
static GUIContent IconContent(string name, string tooltip);
static def IconContent(name as string, tooltip as string) as GUIContent

Parameters

nameContent name.
tooltipTooltip.

Description

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