Show / Hide Table of Contents

Class SpriteEditorWindow

The editor window for creating/editing/deleting retro sprites, animations, animation sets.

Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
UnityEditor.EditorWindow
MoreEditorWindow
SpriteEditorWindow
Inherited Members
MoreEditorWindow.FixedFrameRate
MoreEditorWindow.OnFixedUpdate
MoreEditorWindow.OnEnableEvent
MoreEditorWindow.OnDisableEvent
MoreEditorWindow.OnDestroyEvent
Namespace: InsaneScatterbrain.RetroKit.Editor
Syntax
public class SpriteEditorWindow : MoreEditorWindow

Constructors

SpriteEditorWindow()

Declaration
public SpriteEditorWindow()

Fields

ToolbarHeightTop

Declaration
public const int ToolbarHeightTop = 25
Field Value
Type Description
System.Int32

Properties

ActiveAnimationSet

Declaration
public SpriteAnimationSet ActiveAnimationSet { get; set; }
Property Value
Type Description
SpriteAnimationSet

ActiveRetroSprite

Declaration
public RetroSprite ActiveRetroSprite { get; set; }
Property Value
Type Description
RetroSprite

ActiveSpriteAnimation

Declaration
public SpriteAnimation ActiveSpriteAnimation { get; set; }
Property Value
Type Description
SpriteAnimation

ActiveTool

Declaration
public SpriteEditorTool ActiveTool { get; set; }
Property Value
Type Description
SpriteEditorTool

PrimaryColorIndex

Declaration
public int PrimaryColorIndex { get; set; }
Property Value
Type Description
System.Int32

SecondaryColorIndex

Declaration
public int SecondaryColorIndex { get; set; }
Property Value
Type Description
System.Int32

ShowAnimations

Declaration
public bool ShowAnimations { get; }
Property Value
Type Description
System.Boolean

ShowAnimationSets

Declaration
public bool ShowAnimationSets { get; }
Property Value
Type Description
System.Boolean

ShowCanvasGrid

Declaration
public bool ShowCanvasGrid { get; }
Property Value
Type Description
System.Boolean

Methods

MoveRectWithinBounds(Rect)

If the given rect is not completely inside the bounds of the sprite editor window, adjust the rect so that it is. Otherwise, it just returns a rect with the same values.

Declaration
public Rect MoveRectWithinBounds(Rect rect)
Parameters
Type Name Description
UnityEngine.Rect rect

The rect.

Returns
Type Description
UnityEngine.Rect

The rect adjusted to be within the sprite editor window bounds.

ShowWindow()

Declaration
[MenuItem("Window/RetroKit/Sprite Editor")]
public static void ShowWindow()
Back to top Generated by DocFX