C# Class SSTUTools.SSTUAnimateLight

Responsible for config-based simple lighting animation. Cannot/does not move transforms (hanlded through link to SSTUAnimateControlled). Intended handle float-curve based animations for emissive and light-transform setups. Loop animation will play from front-back-front-back, etc; front (start) should be the same state as the end as the on animation (not enforced...)
Inheritance: SSTUTools.SSTUPartModuleConfigEnabled
Afficher le fichier Open project: shadowmage45/SSTULabs Class Usage Examples

Méthodes publiques

Méthode Description
FixedUpdate ( ) : void
OnAnimationStatusCallback ( AnimState newState ) : void
OnAwake ( ) : void
OnLoad ( ConfigNode node ) : void
OnStart ( StartState state ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Méthode Description
enableLights ( bool enable ) : void
enableLightsAction ( KSPActionParam param ) : void
enableLightsEvent ( ) : void
initialize ( ) : void
loadConfigData ( ConfigNode node ) : void
setState ( LightAnimationState state ) : void
updateAnimationControllerState ( ) : void
updateLights ( float progress, bool useLoop ) : void
updateMeshEmissives ( float progress, bool useLoop ) : void

Method Details

FixedUpdate() public méthode

public FixedUpdate ( ) : void
Résultat void

OnAnimationStatusCallback() public méthode

public OnAnimationStatusCallback ( AnimState newState ) : void
newState AnimState
Résultat void

OnAwake() public méthode

public OnAwake ( ) : void
Résultat void

OnLoad() public méthode

public OnLoad ( ConfigNode node ) : void
node System.ConfigNode
Résultat void

OnStart() public méthode

public OnStart ( StartState state ) : void
state StartState
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void