Skip to content

ModuleSystemHeatColorAnimator

JadeOfMaar edited this page Apr 28, 2025 · 3 revisions

This module inherits from stock ModuleColorChanger which enables color animation between an initial default state and a single desired final state. It is used in place of any Unity animations and any stock modules that direct the Unity animations for animating the heat glow on compatible parts for thermal storage and dissipation. The default curve values here lead to a simple fade in animation which tends to look bad if used on anything other than a simple light switch. Be sure to figure out and supply your own curves if one is necessary.

MODULE
{
	name = ModuleSystemHeatColorAnimator
	moduleID = exampleColor
	shaderProperty = _TintColor
	includedTransformList = exampleLights, exampleGlow // optional
	animRate = 1 // optional
	redCurve
	{
		key = 0 0
		key = 1 1
	}
	greenCurve
	{
		key = 0 0
		key = 1 1
	}
	blueCurve
	{
		key = 0 0
		key = 1 1
	}
	alphaCurve
	{
		key = 0 0
		key = 1 1
	}
}
  • moduleID: Required; This is the unique identifier for this module (as a given part may have multiple of this module). By this value other modules can direct it for their purposes, namely ModuleSystemHeatRadiator{} and ModuleSystemHeatResourceAnimator{}.
  • shaderProperty: Required; Decides which aspect of the part's coloring to animate. Radiators typically use _EmissiveColor to respect the artwork of their heat texture. _TintColor does not respect a texture and will flatly illuminate the named transform or the whole model. This is good for use as a status light.
  • includedTransformList: Optional; A comma-separated list of transforms within the part to be whitelisted for animation. Multiple of this module may possess this key with different values so different regions of the model can glow in response to multiple conditions.
  • animRate: Affects animation speed. As far as System Heat is concerned there might never be a need to supply a value other than 1.

Clone this wiki locally