Class ImageEditor
Editor class used to edit UI Sprites.
Inherited Members
Namespace: UnityEditor .UI
Assembly: UnityEditor.UI.dll
Syntax
[CustomEditor(typeof(Image), true)]
[CanEditMultipleObjects]
public class ImageEditor : GraphicEditor
Methods
GetInfoString()
A string containing the Image details to be used as a overlay on the component Preview.
Declaration
public override string GetInfoString()
Returns
Type | Description |
---|---|
string | The Image details. |
Overrides
HasPreviewGUI()
All graphics have a preview.
Declaration
public override bool HasPreviewGUI()
Returns
Type | Description |
---|---|
bool |
Overrides
OnDisable()
Declaration
protected override void OnDisable()
Overrides
OnEnable()
Declaration
protected override void OnEnable()
Overrides
OnInspectorGUI()
Declaration
public override void OnInspectorGUI()
Overrides
OnPreviewGUI(Rect, GUIStyle)
Draw the Image preview.
Declaration
public override void OnPreviewGUI(Rect rect, GUIStyle background)
Parameters
Overrides
SpriteGUI()
Draw the atlas and Image selection fields.
Declaration
protected void SpriteGUI()
TypeGUI()
Sprites's custom properties based on the type.
Declaration
protected void TypeGUI()