Summary
A wrapper around the '2D Sprite' package features for editing Sprite data.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor .Tools - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["SpriteDataEditor"]
class Type type-node
Syntax
public class SpriteDataEditor
Constructors
Name | Summary |
---|---|
SpriteDataEditor |
Creates a new Animancer.Editor.Tools.SpriteDataEditor . |
Properties
Name | Value | Summary |
---|---|---|
SpriteCount | int |
The number of sprites in the target data.
|
Methods
Name | Value | Summary |
---|---|---|
Apply |
void |
Applies any modifications to the target asset.
|
GetAlignment |
SpriteAlignment |
Returns the alignment of the sprite at the specified `index`.
|
GetBorder |
Vector4 |
Returns the border of the sprite at the specified `index`.
|
GetName |
string |
Returns the name of the sprite at the specified `index`.
|
GetPivot |
Vector2 |
Returns the pivot of the sprite at the specified `index`.
|
GetRect |
Rect |
Returns the rect of the sprite at the specified `index`.
|
IndexOf |
int |
Tries to find the index of the data matching the `sprite`.
|
SetAlignment |
void |
Sets the alignment of the sprite at the specified `index`.
|
SetBorder |
void |
Sets the border of the sprite at the specified `index`.
|
SetName |
void |
Sets the name of the sprite at the specified `index`.
|
SetPivot |
void |
Sets the pivot of the sprite at the specified `index`.
|
SetRect |
void |
Sets the rect of the sprite at the specified `index`.
|
ValidateBounds |
bool |
Logs an error and returns false if the data at the specified `index` is out of the texture bounds.
|