Unity GAF Player  1.0
Tools for playing GAF animation inside Unity
 All Classes Files Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Protected Attributes | List of all members
GAFConverterNGUI Class Reference
Inheritance diagram for GAFConverterNGUI:
GAFConverterUnity GAFConverter

Public Member Functions

 GAFConverterNGUI ()
 Initializes a new instance of the GAFConverterNGUI class. More...
 
 GAFConverterNGUI (string inJASONString, string name, GameObject nguiPanel)
 Initializes a new instance of the GAFConverterNGUI class. More...
 
 GAFConverterNGUI (string inJASONString, GameObject nguiPanel)
 Initializes a new instance of the GAFConverterNGUI class. More...
 
new virtual GAFAnimationPlayerNGUI CreateAnimation (bool hd)
 Gets the gameobject by element name. More...
 
- Public Member Functions inherited from GAFConverterUnity
 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...
 
- 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 Attributes

GameObject mNguiPanel
 
- Protected Attributes inherited from GAFConverterUnity
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
 

Additional Inherited Members

- Protected Member Functions inherited from GAFConverterUnity
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...
 
- Properties inherited from GAFConverterUnity
string Name [get]
 Gets the name. More...
 
GameObject RootObject [get]
 Gets the root object. More...
 
- Events inherited from GAFConverter
FrameHandler FrameProcessed
 Occurs when frame processed. More...
 

Constructor & Destructor Documentation

GAFConverterNGUI.GAFConverterNGUI ( )

Initializes a new instance of the GAFConverterNGUI class.

GAFConverterNGUI.GAFConverterNGUI ( string  inJASONString,
string  name,
GameObject  nguiPanel 
)

Initializes a new instance of the GAFConverterNGUI class.

Parameters
inJASONStringIn JASON string.
nameName.
nguiPanelNgui panel.
GAFConverterNGUI.GAFConverterNGUI ( string  inJASONString,
GameObject  nguiPanel 
)

Initializes a new instance of the GAFConverterNGUI class.

Parameters
inJASONStringIn JASON string.
nguiPanelNgui panel.

Member Function Documentation

new virtual GAFAnimationPlayerNGUI GAFConverterNGUI.CreateAnimation ( bool  hd)
virtual

Gets the gameobject by element name.

Returns
The game object by element name.
Parameters
elementNameElement name.

Creates the animation.

Returns
The animation.
Parameters
hdHd.

Reimplemented from GAFConverterUnity.

Member Data Documentation

GameObject GAFConverterNGUI.mNguiPanel
protected

The documentation for this class was generated from the following file: