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

GAF animation player base. More...

Inheritance diagram for GAFAnimationPlayerBase:
GAFAnimationPlayer GAFAnimationPlayerNGUI

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

Detailed Description

GAF animation player base.

Member Function Documentation

virtual void GAFAnimationPlayerBase.ApllyObjectBlur ( )
protectedvirtual

Apllies the object blur.

virtual void GAFAnimationPlayerBase.ApplyColorTranformation ( )
protectedvirtual

Applies the color tranformation.

virtual void GAFAnimationPlayerBase.ApplyMask ( )
protectedvirtual

Applies the mask.

Reimplemented in GAFAnimationPlayerNGUI.

virtual void GAFAnimationPlayerBase.ApplyObjectAlpha ( )
protectedvirtual

Applies the object alpha.

virtual void GAFAnimationPlayerBase.ApplyObjectAlpha ( GAFState  state,
GameObject  go 
)
protectedvirtual

Applies the object alpha.

Use in editor scripts

Parameters
stateState.
goGo.
virtual void GAFAnimationPlayerBase.ApplyTransformations ( )
protectedvirtual

Applies the transformations.

virtual void GAFAnimationPlayerBase.ApplyTransformations ( GAFState  state,
GameObject  go 
)
protectedvirtual

Applies the transformations.

Parameters
stateState.
goGo.
virtual void GAFAnimationPlayerBase.GAFPlay ( )
virtual

Play animation.

virtual void GAFAnimationPlayerBase.GAFResetElements ( )
virtual

Reset elements.

Make them invisible, reset color shift and multiplication. Do not hide objects in editor mode

virtual void GAFAnimationPlayerBase.GAFRewind ( )
virtual

Rewind current animation sequrnce to start.

virtual void GAFAnimationPlayerBase.GAFSetAnimationByIndex ( int  index)
virtual

Sets current animation by index.

If index is out of range do nothing.

Parameters
indexIndex.
virtual void GAFAnimationPlayerBase.GAFSetAnimationByName ( string  name)
virtual

Sets current animation by name.

If name was not founded do nothing.

Parameters
nameName.
virtual void GAFAnimationPlayerBase.GAFSetAnimationToFrame ( int  fromFrame,
int  toFrame 
)
virtual

Sets the animation to frame.

Simulate animation at setted period.

Parameters
fromFrameFrom frame.
toFrameTo frame.
virtual void GAFAnimationPlayerBase.GAFSetNextAnimation ( )
virtual

Sets the next animation.

If it is last animation set to first one.

virtual void GAFAnimationPlayerBase.GAFSetPreviousAnimation ( )
virtual

Sets the previous animation.

If it is first animation set to last

virtual void GAFAnimationPlayerBase.GAFStop ( )
virtual

Stop animation.

virtual void GAFAnimationPlayerBase.Start ( )
virtual
virtual void GAFAnimationPlayerBase.Update ( )
virtual

Member Data Documentation

Dictionary<string, GameObject> GAFAnimationPlayerBase.mAnimatedObjects
protected
Dictionary<GameObject,List<GameObject> > GAFAnimationPlayerBase.mBlurGos
protected
Dictionary<GameObject,List<Material> > GAFAnimationPlayerBase.mBlurMats
protected
int GAFAnimationPlayerBase.mCurrentFrame = -1
protected
GameObject GAFAnimationPlayerBase.mCurrentGameObject
protected
int GAFAnimationPlayerBase.mCurrentSequenceIndex
protected
GAFState GAFAnimationPlayerBase.mCurrentState
protected
bool GAFAnimationPlayerBase.mIsPlaying = false
protected
List<PolygonVerts> GAFAnimationPlayerBase.mOriginalVerts
List<string> GAFAnimationPlayerBase.mOriginalVertsGo
bool GAFAnimationPlayerBase.mPlayAutomatically = true
protected
float GAFAnimationPlayerBase.mPreviousTime
protected
bool GAFAnimationPlayerBase.mWasInit = false
protected
eGAFWrapMode GAFAnimationPlayerBase.mWrapMode = eGAFWrapMode.Loop
protected

Property Documentation

GAFAnimation GAFAnimationPlayerBase.GAFAnimation
getset

Gets or sets the GAF animation data.

The gaf animation.

int GAFAnimationPlayerBase.GAFCurrentFrame
getset

Gets or sets the current frame.

The current frame.

int GAFAnimationPlayerBase.GAFCurrentSequenceIndex
getset

Gets or sets the index of the current sequence.

The index of the current sequence.

bool GAFAnimationPlayerBase.GAFIsPlaying
get

Gets a value indicating whether this instance is playing.

true if this instance is playing; otherwise, false.

bool GAFAnimationPlayerBase.GAFPlayAutomatically
getset

Gets or sets a value indicating whether animation is going to play on start.

true if play automatically; otherwise, false.

eGAFWrapMode GAFAnimationPlayerBase.GAFWrapMode
getset

Gets or sets the GAF wrap mode.

The GAF wrap mode.


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