DrawGUI.Icon.Unity

Static icon accessor that provides ~28 built-in Unity Editor textures as readonly fields. Icons are loaded once at class initialization via EditorGUIUtility.FindTexture (by internal name) or EditorGUIUtility.IconContent (by icon content key). No caching layer — Unity manages the underlying textures.

Definition

Namespace: Paragon.Editor Assembly: Editor assembly

public static partial class DrawGUI
{
    public static partial class Icon
    {
        public static class Unity

Nesting: DrawGUIIconUnity

Quick Lookup

Goal
Code

Get a Unity icon

DrawGUI.Icon.Unity.Brush

Get a ScriptableObject icon

DrawGUI.Icon.Unity.ScriptableObject

Fields

All fields are public static readonly and loaded at static initialization.

Texture2D Fields (via FindTexture)

Field
Unity Internal Name
Description

Brush

Grid.PaintTool

Paint/brush tool

Eraser

Grid.EraserTool

Eraser tool

Quad

PreMatQuad

Material preview quad

Camera

SceneViewCamera

Scene view camera

Lock

InspectorLock

Inspector lock toggle

Folder

Project

Project folder

Search

Search Icon

Search magnifying glass

Script

cs Script Icon

C# script file

Add

Toolbar Plus

Toolbar add/plus button

Back

back

Back navigation arrow

Close

d_winbtn_graph_close_h

Window close button

VisibleOn

animationvisibilitytoggleon

Visibility on (eye open)

VisibleOff

animationvisibilitytoggleoff

Visibility off (eye closed)

Trash

TreeEditor.Trash

Delete/trash can

Play

Animation.Play@2x

Play button (2x resolution)

GameView

UnityEditor.GameView@2x

Game view window (2x)

Import

Import@2x

Import action (2x)

Replay

preAudioAutoPlayOff@2x

Replay/restart action (2x)

Stop

Animation.Record@2x

Record/stop button (2x)

Refresh

Refresh@2x

Refresh action (2x)

Scene

d_Scene

Scene file icon (dark theme)

Options

_Popup

Options/popup menu

Web

d_BuildSettings.Web.Small

Web platform (dark, small)

Texture Fields (via IconContent)

These use EditorGUIUtility.IconContent(name).image and return Texture (base type, not Texture2D):

Field
Icon Content Key
Description

ScriptableObject

ScriptableObject Icon

ScriptableObject type icon

Warning

Warning

Warning triangle

Loading

Loading

Loading spinner

Preset

Preset.Context

Preset context menu icon

Common Pitfalls

circle-exclamation
circle-exclamation
circle-exclamation
circle-exclamation

Examples

Using Unity icons in custom editor

See Also

Last updated