Show / Hide Table of Contents

Class SpriteToolsGUI

The sprite tools sub window, part of the sprite editor window

Inheritance
System.Object
PartialEditorWindow<SpriteEditorWindow>
EditorSubWindow<SpriteEditorWindow>
SpriteToolsGUI
Inherited Members
EditorSubWindow<SpriteEditorWindow>.WindowId
PartialEditorWindow<SpriteEditorWindow>.Parent
PartialEditorWindow<SpriteEditorWindow>.Undoer
PartialEditorWindow<SpriteEditorWindow>.RetroKitEditorGui
Namespace: InsaneScatterbrain.RetroKit.Editor
Syntax
public class SpriteToolsGUI : EditorSubWindow<SpriteEditorWindow>

Constructors

SpriteToolsGUI(SpriteEditorWindow)

Declaration
public SpriteToolsGUI(SpriteEditorWindow parent)
Parameters
Type Name Description
SpriteEditorWindow parent

Methods

ApplyEraser(Vector2Int)

Applies the eraser tool on the given pixel.

Declaration
public void ApplyEraser(Vector2Int pixelIndex)
Parameters
Type Name Description
UnityEngine.Vector2Int pixelIndex

The pixel's index.

ApplyEyeDropper(Vector2Int)

Selects the pixel's colour as the primary or secondary color

Declaration
public void ApplyEyeDropper(Vector2Int pixelIndex)
Parameters
Type Name Description
UnityEngine.Vector2Int pixelIndex

The pixel's index.

ApplyFill(Vector2Int, Nullable<Int32>)

Applies the fill tool to the pixel and all connected pixels with the same color. If fillColor is null either the selected primary or secondary color is used, depending on which mouse button is pressed.

Declaration
public void ApplyFill(Vector2Int pixelIndex, int? fillColor = default(int? ))
Parameters
Type Name Description
UnityEngine.Vector2Int pixelIndex

The pixel's index.

System.Nullable<System.Int32> fillColor

The new color.

ApplyPencil(Vector2Int)

Apply the pencil tool on the pixel.

Declaration
public void ApplyPencil(Vector2Int pixelIndex)
Parameters
Type Name Description
UnityEngine.Vector2Int pixelIndex

The pixel's index.

UpdateAndDraw()

Updates and draws the tools sub window.

Declaration
public void UpdateAndDraw()

UpdateCursor()

Sets the custom cursor based on the selected tool.

Declaration
public void UpdateCursor()
Back to top Generated by DocFX