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 Member Functions | Protected Attributes | Properties | List of all members
GAFConverterUnity Class Reference
Inheritance diagram for GAFConverterUnity:
GAFConverter GAFConverterNGUI

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...
 

Constructor & Destructor Documentation

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);

Parameters
gafPathGaf 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);

Parameters
gafPathGaf path.
nameName.

Member Function Documentation

virtual GAFAnimationPlayer GAFConverterUnity.CreateAnimation ( bool  hd)
virtual

Creates the animation.

GAFConverterUnity gafConverter = new GAFConverterUnity("coin/coin", "myCoin" ); gafConverter.CreateAnimation(false);

Returns
The animation.
Parameters
hdHd.

Reimplemented in GAFConverterNGUI.

GAFTextureAtlas GAFConverterUnity.GetAtlasById ( int  id,
float  scale 
)
protected

Gets the atlas by identifier.

Returns
The atlas by identifier.
Parameters
idIdentifier.
scaleScale.
virtual GameObject GAFConverterUnity.GetGameObjectByElementName ( string  elementName)
protectedvirtual

Gets the name of the game object by element.

Returns
The game object by element name.
Parameters
elementNameElement name.
Texture2D GAFConverterUnity.GetMaskTextureByElementName ( string  elementName)
protected

Gets the name of the mask texture by element.

Returns
The mask texture by element name.
Parameters
elementNameElement name.
GAFTextureAtlas GAFConverterUnity.GetTextureAtlasByScale ( float  scale)
protected

Gets the texture atlas by scale.

Returns
The texture atlas by scale.
Parameters
scaleScale.
Texture2D GAFConverterUnity.GetTextureByElementName ( string  elementName)
protected

Gets the name of the texture by element.

Returns
The texture by element name.
Parameters
elementNameElement name.

Member Data Documentation

GameObject GAFConverterUnity.mGo
protected
string GAFConverterUnity.mName = "GAFAnimation"
protected
float GAFConverterUnity.mScale
protected
Material [] GAFConverterUnity.mSharedMaterials
protected

Property Documentation

string GAFConverterUnity.Name
get

Gets the name.

The name.

GameObject GAFConverterUnity.RootObject
get

Gets the root object.

The root object.


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