Version 3.3.1.2

EditorIcon class

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.Utilities.Editor
public abstract class EditorIcon
Icon for using in editor GUI.
Inheritance
  • System.Object
  • EditorIcon

Constructors

EditorIcon()
protected EditorIcon()

Properties

Active
Gets the icon's active texture.
public abstract Texture Active { get; }
ActiveGUIContent
Gets a GUIContent object with the active texture.
public GUIContent ActiveGUIContent { get; }
Highlighted
Gets the icon's highlighted texture.
public abstract Texture Highlighted { get; }
HighlightedGUIContent
Gets a GUIContent object with the highlighted texture.
public GUIContent HighlightedGUIContent { get; }
Inactive
Gets the icon's inactive texture.
public abstract Texture Inactive { get; }
InactiveGUIContent
Gets a GUIContent object with the inactive texture.
public GUIContent InactiveGUIContent { get; }
Raw
Gets the raw input icon texture.
public abstract Texture2D Raw { get; }

Methods

Draw(Rect)
Draws the icon in a square rect, with a custom shader that makes the icon look better when down-scaled. This also handles mouseover effects, and linier color spacing.
public void Draw(Rect rect)
Parameters
UnityEngine.Rect rect

Draw(Rect, Single)
Draws the icon in a square rect, with a custom shader that makes the icon look better when down-scaled. This also handles mouseover effects, and linier color spacing.
public void Draw(Rect rect, float drawSize)
Parameters
UnityEngine.Rect rect

System.Single drawSize

Draw(Rect, Texture)
Draws the icon in a square rect, with a custom shader that makes the icon look better when down-scaled. This also handles mouseover effects, and linier color spacing.
public void Draw(Rect rect, Texture texture)
Parameters
UnityEngine.Rect rect

UnityEngine.Texture texture

Derived Classes