C# Class SSTUTools.SSTUAnimData

Wrapper class for the data to manage a single animation, including animation speed and layers, and min/max time handling (default to 0-1 normalized time)
Mostra file Open project: shadowmage45/SSTULabs Class Usage Examples

Public Properties

Property Type Description
maxDeployTime float

Public Methods

Method Description
SSTUAnimData ( ConfigNode node, Transform transform ) : System
SSTUAnimData ( String name, float speed, int layer, Transform transform ) : System
ToString ( ) : string
playAnimation ( ) : void
sample ( float time ) : void
setAnimLayer ( int layer ) : void
setAnimSpeed ( float speed ) : void
setAnimTime ( float time, bool sample = false ) : void
setMaxTime ( float max, AnimState state ) : bool
stopAnimation ( ) : void
updateAnimation ( ) : bool

Private Methods

Method Description
sample ( Animation anim, AnimationState clip, float time ) : void
setupController ( String name, float speed, int layer, Transform transform ) : void

Method Details

SSTUAnimData() public method

public SSTUAnimData ( ConfigNode node, Transform transform ) : System
node System.ConfigNode
transform UnityEngine.Transform
return System

SSTUAnimData() public method

public SSTUAnimData ( String name, float speed, int layer, Transform transform ) : System
name String
speed float
layer int
transform UnityEngine.Transform
return System

ToString() public method

public ToString ( ) : string
return string

playAnimation() public method

public playAnimation ( ) : void
return void

sample() public method

public sample ( float time ) : void
time float
return void

setAnimLayer() public method

public setAnimLayer ( int layer ) : void
layer int
return void

setAnimSpeed() public method

public setAnimSpeed ( float speed ) : void
speed float
return void

setAnimTime() public method

public setAnimTime ( float time, bool sample = false ) : void
time float
sample bool
return void

setMaxTime() public method

public setMaxTime ( float max, AnimState state ) : bool
max float
state AnimState
return bool

stopAnimation() public method

public stopAnimation ( ) : void
return void

updateAnimation() public method

public updateAnimation ( ) : bool
return bool

Property Details

maxDeployTime public_oe property

public float maxDeployTime
return float