47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
URL: https://wiki.studiominus.nl/internalReference/ThermalVisionBehaviour.html
|
|
Title: People Playground Modding - ThermalVisionBehaviour
|
|
==================================================
|
|
|
|
public class ThermalVisionBehaviour
|
|
Inherits MonoBehaviour
|
|
Does the thermal vision stuff. Currently not enabled in the game.
|
|
Fields
|
|
public bool ThermalVisionEnabled
|
|
Is thermal vision enabled?
|
|
|
|
public SpriteRenderer SpriteRenderer
|
|
The thermal vision layer renderer
|
|
|
|
public LayerMask ToRead
|
|
Layers to read the temperature from
|
|
|
|
public float MinTemp
|
|
Minimum temperature on the scale in Celsius
|
|
|
|
public float MaxTemp
|
|
Maximum temperature on the scale in Celsius
|
|
|
|
public const int ThermalVisionResolution
|
|
The resolution of the thermal vision texture (ThermalVisionResolution x ThermalVisionResolution)
|
|
Constant value: 64
|
|
|
|
public const int ComponentsPerEntry
|
|
According to the texture format, RG16, there are two bytes per entry. One for each component.
|
|
Constant value: 2
|
|
|
|
public UnityEvent OnThermalVisionToggle
|
|
Invoked when thermal vision is toggled
|
|
|
|
Properties
|
|
public static ThermalVisionBehaviour Instance { get; private set; }
|
|
Singleton instance of this behaviour
|
|
|
|
Methods
|
|
public void ToggleThermalVision()
|
|
Toggle thermal vision
|
|
|
|
public void StartThermalVision()
|
|
Enable thermal vision
|
|
|
|
public void StopThermalVision()
|
|
Disable thermal vision |