Interface that defines the functionality available for classes that inherits SpriteEditorModuleBase.
Used by Sprite Editor Window to encapsulate functionality accessible for Sprite Editor modules when editing Sprite data.
editingDisabled | Indicates that if Sprite data editing should be disabled; for example when the Editor is in Play Mode. |
enableMouseMoveEvent | Indicates if ISpriteEditor should be interested in mouse move events. |
selectedSpriteRect | The current selected Sprite rect data. |
spriteRects | Sets current available Sprite rects. |
windowDimension | Property that defines the window's current screen position and size. |
ApplyOrRevertModification | The method will inform current active SpriteEditorModuleBase to apply or revert any data changes. |
GetDataProvider | Gets data provider that is supported by the current selected Assets's importer. |
HandleSpriteSelection | The method updates ISpriteEditor.selectedSpriteRect based on current mouse down event and ISpriteEditor.spriteRects available. |
RequestRepaint | Request to repaint the current view. |
SetDataModified | Indicates that there has been a change of data. In Sprite Editor Window, this enables the 'Apply' and 'Revert' button. |