All Classes Namespaces Functions Variables Enumerations Enumerator Properties
plyGame.LegacyAnimClipDef Class Reference

Animation definition used in Legacy animation controller More...

Public Member Functions

bool Init (Animation ani)
 This should be called before using any of the other functions of this class. You should specify to which animation this clip (animation definition) belongs More...
 
bool Play ()
 Play the animation More...
 
bool CrossFade ()
 Crossfade the animation More...
 

Public Attributes

string clipName
 name of clip
 
bool reverse = false
 should it play in reverse?
 
float playbackSpeed = 1f
 how fast should it play
 
WrapMode wrapMode = WrapMode.Loop
 wrap mode to use
 

Properties

bool IsValid [get]
 Is animation valid? Use after Init() More...
 
float ClipLength [get]
 Length of the clip More...
 

Detailed Description

Animation definition used in Legacy animation controller

Member Function Documentation

bool plyGame.LegacyAnimClipDef.CrossFade ( )

Crossfade the animation

bool plyGame.LegacyAnimClipDef.Init ( Animation  ani)

This should be called before using any of the other functions of this class. You should specify to which animation this clip (animation definition) belongs

bool plyGame.LegacyAnimClipDef.Play ( )

Play the animation

Property Documentation

float plyGame.LegacyAnimClipDef.ClipLength
get

Length of the clip

bool plyGame.LegacyAnimClipDef.IsValid
get

Is animation valid? Use after Init()