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
Exibir arquivo Open project: shadowmage45/SSTULabs Class Usage Examples

Public Methods

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

Private Methods

Method 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 method

public FixedUpdate ( ) : void
return void

OnAnimationStatusCallback() public method

public OnAnimationStatusCallback ( AnimState newState ) : void
newState AnimState
return void

OnAwake() public method

public OnAwake ( ) : void
return void

OnLoad() public method

public OnLoad ( ConfigNode node ) : void
node System.ConfigNode
return void

OnStart() public method

public OnStart ( StartState state ) : void
state StartState
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void