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)
Afficher le fichier Open project: shadowmage45/SSTULabs Class Usage Examples

Méthodes publiques

Свойство Type Description
maxDeployTime float

Méthodes publiques

Méthode 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

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

Method Details

SSTUAnimData() public méthode

public SSTUAnimData ( ConfigNode node, Transform transform ) : System
node System.ConfigNode
transform UnityEngine.Transform
Résultat System

SSTUAnimData() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string

playAnimation() public méthode

public playAnimation ( ) : void
Résultat void

sample() public méthode

public sample ( float time ) : void
time float
Résultat void

setAnimLayer() public méthode

public setAnimLayer ( int layer ) : void
layer int
Résultat void

setAnimSpeed() public méthode

public setAnimSpeed ( float speed ) : void
speed float
Résultat void

setAnimTime() public méthode

public setAnimTime ( float time, bool sample = false ) : void
time float
sample bool
Résultat void

setMaxTime() public méthode

public setMaxTime ( float max, AnimState state ) : bool
max float
state AnimState
Résultat bool

stopAnimation() public méthode

public stopAnimation ( ) : void
Résultat void

updateAnimation() public méthode

public updateAnimation ( ) : bool
Résultat bool

Property Details

maxDeployTime public_oe property

public float maxDeployTime
Résultat float