Summary
[Editor-Only] [Pro-Only]
A
Animancer.Editor.Tools.SpriteModifierTool
for modifying UnityEngine.Sprite
detauls.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor .Tools - Interfaces
-
- IComparable
<AnimancerToolsWindow .Tool >
- IComparable
- Base Types
graph BT
Type-->Base0["SpriteModifierTool"]
click Base0 "/animancer/api/Animancer.Editor.Tools/SpriteModifierTool"
Base0-->Base1["AnimancerToolsWindow.Tool"]
click Base1 "/animancer/api/Animancer.Editor.Tools/Tool"
Base1-->Base2["Object"]
Type-.->Interface0["IComparable<AnimancerToolsWindow.Tool>"]
Type["ModifySpritesTool"]
class Type type-node
Syntax
[Serializable]
public class ModifySpritesTool : SpriteModifierTool, IComparable<AnimancerToolsWindow.Tool>
Remarks
Documentation:
Modify Sprites
Attributes
Type | Description |
---|---|
Serializable |
Properties
Name | Value | Summary |
---|---|---|
AreYouSure | string |
The message to confirm that the user is certain they want to apply the changes.
Inherited from SpriteModifierTool
|
DisplayOrder | int |
Lower numbers display first.
|
HelpIcon | Texture |
The help icon image used in the tool header.
Inherited from AnimancerToolsWindow
static
|
HelpURL | string |
The URL for the help button in the header to open.
|
Instructions | string |
The usage instructions to display at the top of this tool.
|
IsExpanded | bool |
Is the body of this tool currently visible?
Inherited from AnimancerToolsWindow
|
IsVisible | bool |
Is this tool currently visible?
Inherited from AnimancerToolsWindow
|
Name | string |
The display name of this tool.
|
Sprites | List |
The currently selected
UnityEngine.Sprite s.Inherited from SpriteModifierTool
static
|
Methods
Name | Value | Summary |
---|---|---|
AfterApply |
void |
Called after all changes are applied.
Inherited from SpriteModifierTool
|
AskAndApply |
void |
Asks the user if they want to modify the target
UnityEngine.Sprite s and calls Animancer.Editor.Tools.SpriteModifierTool.Modify(Animancer.Editor.Tools.SpriteDataEditor,System.Int32,UnityEngine.Sprite)
on each of them before saving any changes.
Inherited from SpriteModifierTool
|
BeforeApply |
void |
Called immediately after the user confirms they want to apply changes.
Inherited from SpriteModifierTool
|
CompareTo |
int |
Compares the
Animancer.Editor.Tools.AnimancerToolsWindow.Tool.DisplayOrder to put lower numbers first.Inherited from AnimancerToolsWindow
|
DoBodyGUI |
void | |
DoGUI |
void |
Draws the GUI for this tool.
Inherited from AnimancerToolsWindow
|
DoHeaderGUI |
void |
Draws the Header GUI for this tool which is displayed regardless of whether it is expanded or not.
Inherited from AnimancerToolsWindow
|
Gather |
void |
Adds all
UnityEngine.Sprite s in the UnityEditor.Selection.objects or their sub-assets to the
list of `sprites`.
Inherited from SpriteModifierTool
static
|
Handle |
void |
Adds any objects dropped in the `area` to the `list`.
Inherited from AnimancerToolsWindow
|
LoadAllSpritesAtPath |
Sprite[] |
Returns all the
UnityEngine.Sprite assets at the `path`.Inherited from SpriteModifierTool
static
|
Load |
Sprite[] |
Returns all the
UnityEngine.Sprite sub-assets of the `texture`.Inherited from SpriteModifierTool
static
|
Modify |
void |
Applies the desired modifications to the `data` before it is saved.
Inherited from SpriteModifierTool
|
Modify |
void |
Applies the desired modifications to the `data` before it is saved.
Inherited from SpriteModifierTool
|
NaturalCompare |
int |
Calls
UnityEditor.EditorUtility.NaturalCompare(System.String,System.String) on the UnityEngine.Object.name s.Inherited from SpriteModifierTool
static
|
OnDisable |
void |
Called by
Animancer.Editor.Tools.AnimancerToolsWindow.OnDisable .Inherited from AnimancerToolsWindow
|
OnEnable |
void |
Called by
Animancer.Editor.Tools.AnimancerToolsWindow.OnEnable . |
OnSelectionChanged |
void |
Called whenever the
UnityEditor.Selection changes.Inherited from SpriteModifierTool
|
SaveModifiedAsset |
bool |
Asks the user where they want to save a modified asset, calls `modify` on it, and saves it.
Inherited from AnimancerToolsWindow
static
|