|
Unity GAF Player
1.0
Tools for playing GAF animation inside Unity
|
GAF animation player base. More...
Public Member Functions | |
| virtual void | Start () |
| virtual void | Update () |
| virtual void | GAFSetNextAnimation () |
| Sets the next animation. More... | |
| virtual void | GAFSetPreviousAnimation () |
| Sets the previous animation. More... | |
| virtual void | GAFSetAnimationByName (string name) |
| Sets current animation by name. More... | |
| virtual void | GAFSetAnimationByIndex (int index) |
| Sets current animation by index. More... | |
| virtual void | GAFResetElements () |
| Reset elements. More... | |
| virtual void | GAFRewind () |
| Rewind current animation sequrnce to start. More... | |
| virtual void | GAFSetAnimationToFrame (int fromFrame, int toFrame) |
| Sets the animation to frame. More... | |
| virtual void | GAFPlay () |
| Play animation. More... | |
| virtual void | GAFStop () |
| Stop animation. More... | |
Public Attributes | |
| List< PolygonVerts > | mOriginalVerts |
| List< string > | mOriginalVertsGo |
Protected Member Functions | |
| virtual void | ApplyMask () |
| Applies the mask. More... | |
| virtual void | ApplyTransformations () |
| Applies the transformations. More... | |
| virtual void | ApplyObjectAlpha () |
| Applies the object alpha. More... | |
| virtual void | ApllyObjectBlur () |
| Apllies the object blur. More... | |
| virtual void | ApplyColorTranformation () |
| Applies the color tranformation. More... | |
| virtual void | ApplyTransformations (GAFState state, GameObject go) |
| Applies the transformations. More... | |
| virtual void | ApplyObjectAlpha (GAFState state, GameObject go) |
| Applies the object alpha. More... | |
Protected Attributes | |
| int | mCurrentSequenceIndex |
| bool | mPlayAutomatically = true |
| bool | mIsPlaying = false |
| bool | mWasInit = false |
| eGAFWrapMode | mWrapMode = eGAFWrapMode.Loop |
| Dictionary< string, GameObject > | mAnimatedObjects |
| GameObject | mCurrentGameObject |
| int | mCurrentFrame = -1 |
| float | mPreviousTime |
| GAFState | mCurrentState |
| Dictionary< GameObject, List < GameObject > > | mBlurGos |
| Dictionary< GameObject, List < Material > > | mBlurMats |
Properties | |
| GAFAnimation | GAFAnimation [get, set] |
| Gets or sets the GAF animation data. More... | |
| int | GAFCurrentSequenceIndex [get, set] |
| Gets or sets the index of the current sequence. More... | |
| bool | GAFIsPlaying [get] |
| Gets a value indicating whether this instance is playing. More... | |
| bool | GAFPlayAutomatically [get, set] |
| Gets or sets a value indicating whether animation is going to play on start. More... | |
| int | GAFCurrentFrame [get, set] |
| Gets or sets the current frame. More... | |
| eGAFWrapMode | GAFWrapMode [get, set] |
| Gets or sets the GAF wrap mode. More... | |
GAF animation player base.
|
protectedvirtual |
Apllies the object blur.
|
protectedvirtual |
Applies the color tranformation.
|
protectedvirtual |
Applies the mask.
Reimplemented in GAFAnimationPlayerNGUI.
|
protectedvirtual |
Applies the object alpha.
|
protectedvirtual |
Applies the object alpha.
Use in editor scripts
| state | State. |
| go | Go. |
|
protectedvirtual |
Applies the transformations.
|
protectedvirtual |
Applies the transformations.
| state | State. |
| go | Go. |
|
virtual |
Play animation.
|
virtual |
Reset elements.
Make them invisible, reset color shift and multiplication. Do not hide objects in editor mode
|
virtual |
Rewind current animation sequrnce to start.
|
virtual |
Sets current animation by index.
If index is out of range do nothing.
| index | Index. |
|
virtual |
Sets current animation by name.
If name was not founded do nothing.
| name | Name. |
|
virtual |
Sets the animation to frame.
Simulate animation at setted period.
| fromFrame | From frame. |
| toFrame | To frame. |
|
virtual |
Sets the next animation.
If it is last animation set to first one.
|
virtual |
Sets the previous animation.
If it is first animation set to last
|
virtual |
Stop animation.
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| List<PolygonVerts> GAFAnimationPlayerBase.mOriginalVerts |
| List<string> GAFAnimationPlayerBase.mOriginalVertsGo |
|
protected |
|
protected |
|
protected |
|
protected |
|
getset |
Gets or sets the GAF animation data.
The gaf animation.
|
getset |
Gets or sets the current frame.
The current frame.
|
getset |
Gets or sets the index of the current sequence.
The index of the current sequence.
|
get |
Gets a value indicating whether this instance is playing.
true if this instance is playing; otherwise, false.
|
getset |
Gets or sets a value indicating whether animation is going to play on start.
true if play automatically; otherwise, false.
|
getset |
Gets or sets the GAF wrap mode.
The GAF wrap mode.
1.8.4