Adventure Creator
1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Static Public Member Functions | |
static bool | IsDefinePresent () |
Checks if the 'tk2DIsPresent' preprocessor has been defined. More... | |
static bool | PlayAnimation (Transform sprite, string clipName, int frame=-1) |
Plays an animation. More... | |
static bool | Is2DtkSprite (GameObject spriteObject) |
Checks if a given gameobject has a tk2dSpriteAnimator component, so long as the 'tk2DIsPresent' preprocessor has been defined. More... | |
static bool | PlayAnimation (Transform sprite, string clipName, bool changeWrapMode, WrapMode wrapMode, int frame=-1) |
Plays an animation. More... | |
static void | StopAnimation (Transform sprite) |
Stops all animation on a Sprite. More... | |
static bool | IsAnimationPlaying (Transform sprite, string clipName) |
Checks if a 2Dtk Sprite is playing a specific animation. More... | |
A class the contains a number of static functions to assist with 2D Toolkit integration. To use 2D Toolkit with Adventure Creator, the 'tk2DIsPresent' preprocessor must be defined.
|
static |
Checks if a given gameobject has a tk2dSpriteAnimator component, so long as the 'tk2DIsPresent' preprocessor has been defined.
spriteObject | The gameobject to check |
|
static |
Checks if a 2Dtk Sprite is playing a specific animation.
sprite | The Transform with the 2Dtk Sprite |
clipName | The name of the animatino clip to check for |
|
static |
Checks if the 'tk2DIsPresent' preprocessor has been defined.
|
static |
Plays an animation.
sprite | The Transform with the 2Dtk Sprite |
clipName | The name of the animation clip to play |
changeWrapMode | If True, then the clip's wrap mode will be changed |
wrapMode | The new WrapMode to use, if changeWrapMode = True |
frame | The frame number to play. If >= 0, then the animation will freeze at the specified frame |
|
static |
Plays an animation.
sprite | The Transform with the 2Dtk Sprite |
clipName | The name of the animation clip to play |
frame | The frame number to play. If >= 0, then the animation will freeze at the specified frame |
|
static |
Stops all animation on a Sprite.
sprite | The Transform with the 2Dtk Sprite |