|
Unity GAF Player
1.0
Tools for playing GAF animation inside Unity
|
Public Member Functions | |
| GAFConverterUnity () | |
| Initializes a new instance of the GAFConverterUnity class. More... | |
| GAFConverterUnity (string gafPath) | |
| Initializes a new instance of the GAFConverterUnity class. More... | |
| GAFConverterUnity (string gafPath, string name) | |
| Initializes a new instance of the GAFConverterUnity class. More... | |
| virtual GAFAnimationPlayer | CreateAnimation (bool hd) |
| Creates the animation. More... | |
Public Member Functions inherited from GAFConverter | |
| GAFConverter () | |
| Initializes a new instance of the GAFConverter class. More... | |
| GAFConverter (string gafAnimationPath) | |
| Initializes a new instance of the GAFConverter class. More... | |
| void | ProcessGAF () |
| Do parsing and fill data structures. More... | |
| GAFElement | GetElementByName (string name, float scale) |
| Gets the name of the element. More... | |
| GAFAnimationConfigFrame[] | GetAnimationFramesByObject (string objectName) |
| Gets the animation frames by object. More... | |
| GAFAnimationConfigFrame[] | GetAnimationFramesByObjectSequence (string objectName, GAFAnimationSequence animationSequence) |
| Gets the animation frames by object sequence. More... | |
| override string | ToString () |
| Returns a System.String that represents the current GAFConverter. More... | |
Protected Member Functions | |
| GAFTextureAtlas | GetAtlasById (int id, float scale) |
| Gets the atlas by identifier. More... | |
| GAFTextureAtlas | GetTextureAtlasByScale (float scale) |
| Gets the texture atlas by scale. More... | |
| Texture2D | GetTextureByElementName (string elementName) |
| Gets the name of the texture by element. More... | |
| Texture2D | GetMaskTextureByElementName (string elementName) |
| Gets the name of the mask texture by element. More... | |
| virtual GameObject | GetGameObjectByElementName (string elementName) |
| Gets the name of the game object by element. More... | |
Protected Member Functions inherited from GAFConverter | |
| virtual void | OnFrameProcessed (FrameArgs e) |
| Raises the frame changed event. More... | |
| bool | IsPartExists (string partId) |
| Determines whether this instance is part exists the specified partID. More... | |
Protected Attributes | |
| Material[] | mSharedMaterials |
| string | mName = "GAFAnimation" |
| GameObject | mGo |
| float | mScale |
Protected Attributes inherited from GAFConverter | |
| string | mJASONString = "" |
| int | mFrameNumber = 0 |
| string | mVersion |
| GAFTextureAtlas[] | mTextureAtlases |
| GAFAnimationSequence[] | mAnimationSequences |
| GAFAnimationObject[] | mAnimationObjects |
| GAFAnimationConfigFrame[] | mAnimationConfigFrames |
| GAFNamedPart[] | mNamedParts |
| GAFAnimationMask[] | mAnimationMasks |
| string | mGafAnimationPath |
| bool | mWasProcessed = false |
Properties | |
| string | Name [get] |
| Gets the name. More... | |
| GameObject | RootObject [get] |
| Gets the root object. More... | |
Properties inherited from GAFConverter | |
| GAFTextureAtlas[] | TextureAtlases [get] |
| Gets the texture atlases. More... | |
| GAFAnimationObject[] | AnimationObjects [get] |
| Gets the animation objects. More... | |
| GAFAnimationConfigFrame[] | AnimationConfigFrames [get] |
| Gets the animation config frames. More... | |
| GAFAnimationSequence[] | AnimationSequences [get] |
| Gets the animation sequences. More... | |
| GAFAnimationMask[] | AnimationMasks [get] |
| Gets the animation masks. More... | |
| GAFNamedPart[] | NamedParts [get] |
| Gets the named parts. More... | |
| int | FrameNumber [get] |
| Gets the frame number. More... | |
| string | Version [get] |
| Gets the version. More... | |
| bool | WasProcessed [get] |
| Gets a value indicating whether this GAFConverter was processed. More... | |
Additional Inherited Members | |
Events inherited from GAFConverter | |
| FrameHandler | FrameProcessed |
| Occurs when frame processed. More... | |
| GAFConverterUnity.GAFConverterUnity | ( | ) |
Initializes a new instance of the GAFConverterUnity class.
| GAFConverterUnity.GAFConverterUnity | ( | string | gafPath) |
Initializes a new instance of the GAFConverterUnity class.
GAFConverterUnity gafConverter = new GAFConverterUnity("coin/coin" ); gafConverter.CreateAnimation(false);
| gafPath | Gaf path. |
| GAFConverterUnity.GAFConverterUnity | ( | string | gafPath, |
| string | name | ||
| ) |
Initializes a new instance of the GAFConverterUnity class.
GAFConverterUnity gafConverter = new GAFConverterUnity("coin/coin", "myCoin" ); gafConverter.CreateAnimation(false);
| gafPath | Gaf path. |
| name | Name. |
|
virtual |
Creates the animation.
GAFConverterUnity gafConverter = new GAFConverterUnity("coin/coin", "myCoin" ); gafConverter.CreateAnimation(false);
| hd | Hd. |
Reimplemented in GAFConverterNGUI.
|
protected |
Gets the atlas by identifier.
| id | Identifier. |
| scale | Scale. |
|
protectedvirtual |
Gets the name of the game object by element.
| elementName | Element name. |
|
protected |
Gets the name of the mask texture by element.
| elementName | Element name. |
|
protected |
Gets the texture atlas by scale.
| scale | Scale. |
|
protected |
Gets the name of the texture by element.
| elementName | Element name. |
|
protected |
|
protected |
|
protected |
|
protected |
|
get |
Gets the name.
The name.
|
get |
Gets the root object.
The root object.
1.8.4