Class SpriteEditorWindow
The editor window for creating/editing/deleting retro sprites, animations, animation sets.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
UnityEditor.EditorWindow
SpriteEditorWindow
Syntax
public class SpriteEditorWindow : MoreEditorWindow
Constructors
SpriteEditorWindow()
Declaration
public SpriteEditorWindow()
Fields
Declaration
public const int ToolbarHeightTop = 25
Field Value
Type |
Description |
System.Int32 |
|
Properties
ActiveAnimationSet
Declaration
public SpriteAnimationSet ActiveAnimationSet { get; set; }
Property Value
ActiveRetroSprite
Declaration
public RetroSprite ActiveRetroSprite { get; set; }
Property Value
ActiveSpriteAnimation
Declaration
public SpriteAnimation ActiveSpriteAnimation { get; set; }
Property Value
Declaration
public SpriteEditorTool ActiveTool { get; set; }
Property Value
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()