Semi Mod Loader
|
Wrapper struct for tk2dSprite
that provides a cleaner interface and works transparently with anything that expects tk2dSprite
s.
More...
Public Member Functions | |
void | CopyTo (Sprite target) |
Copies all fields from this sprite into another existing sprite instance. More... | |
Static Public Member Functions | |
static implicit | operator tk2dSprite (Sprite s) |
Implicit cast operator that allows you to use Sprite anywhere where t2kdSprite is expected. More... | |
static Sprite | Construct (GameObject parent, SpriteCollection collection, int spritedef_id) |
Construct a new sprite on the specified GameObject using the collection and the sprite definition index. More... | |
Public Attributes | |
tk2dSprite | Wrap |
Real tk2d object. More... | |
Properties | |
GameObject | GameObject [get] |
The game object that this sprite is attached to. More... | |
SpriteCollection | Collection [get, set] |
The currently assigned sprite collection. More... | |
string | CurrentSpriteID [get, set] |
The string ID of the currently displayed sprite definition. More... | |
BoxCollider | BoxCollider [get, set] |
The box collider. More... | |
BoxCollider2D | BoxCollider2D [get, set] |
The 2D box collider. More... | |
MeshColliderSettings | MeshColliderSettings [get, set] |
The mesh collider settings. More... | |
int | SortingOrder [get, set] |
The sorting order/render layer. More... | |
bool | AutodetectFootprint [get, set] |
Decides whether to autodetect footprint. More... | |
bool | AutomaticallyManagesDepth [get, set] |
Decides whether Z depth/sorting order should be managed automatically. More... | |
IntVector2 | CustomFootprint [get, set] |
Defines a custom footprint. More... | |
bool | UseTrimmedBoundsForDepth [get, set] |
Decides whether trimmed (whitespace-excluded) bounds should be used for automatically deciding depth. More... | |
bool | FlipHorizontally [get, set] |
Flip horizontally. More... | |
bool | FlipVertically [get, set] |
Flip vertically. More... | |
Wrapper struct for tk2dSprite
that provides a cleaner interface and works transparently with anything that expects tk2dSprite
s.
|
inlinestatic |
Construct a new sprite on the specified GameObject using the collection and the sprite definition index.
parent | GameObject to add this sprite to. |
collection | The sprite collection to set. |
spritedef_id | The sprite definition index to set as the current sprite. |
|
inline |
Copies all fields from this sprite into another existing sprite instance.
target | Target sprite. |
|
static |
Implicit cast operator that allows you to use Sprite
anywhere where t2kdSprite
is expected.
tk2dSprite Semi.Sprite.Wrap |
Real tk2d object.
|
getset |
Decides whether to autodetect footprint.
|
getset |
Decides whether Z depth/sorting order should be managed automatically.
|
getset |
The box collider.
|
getset |
The 2D box collider.
|
getset |
The currently assigned sprite collection.
|
getset |
The string ID of the currently displayed sprite definition.
|
getset |
Defines a custom footprint.
|
getset |
Flip horizontally.
|
getset |
Flip vertically.
|
get |
The game object that this sprite is attached to.
|
getset |
The mesh collider settings.
|
getset |
The sorting order/render layer.
|
getset |
Decides whether trimmed (whitespace-excluded) bounds should be used for automatically deciding depth.