feat: add initial People Playground mod development kit
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
URL: https://wiki.studiominus.nl/internalReference/InfraredThermometer.html
|
||||
Title: People Playground Modding - InfraredThermometer
|
||||
==================================================
|
||||
|
||||
public class InfraredThermometer
|
||||
Inherits MonoBehaviour, Messages.IUse
|
||||
Controls the infrared thermometer
|
||||
Fields
|
||||
public bool Activated
|
||||
Is the thermometer activated? Call UpdateActivation after changing to update the visual state of the object
|
||||
|
||||
public TextMeshPro ValueText
|
||||
[SkipSerialisation]
|
||||
Reference to the text mesh that displays the actual measurement
|
||||
|
||||
public TextMeshPro UnitText
|
||||
[SkipSerialisation]
|
||||
Reference to the text mesh that displays the temperature unit
|
||||
|
||||
public Transform RayPoint
|
||||
[SkipSerialisation]
|
||||
Reference to the child transform out of which the infrared ray is emitted
|
||||
|
||||
public LayerMask LayersToHit
|
||||
[SkipSerialisation]
|
||||
The LayerMask that decides what layers the ray can hit and measure
|
||||
|
||||
public LineRenderer LineRenderer
|
||||
[SkipSerialisation]
|
||||
Reference to the LineRenderer of the visual ray
|
||||
|
||||
public const float RangeInMeters
|
||||
Constant value that is equal to the maximum ray distance in meters
|
||||
Constant value: 7
|
||||
|
||||
public const float RangeInUnits
|
||||
Constant value that is equal to the maximum ray distance in units.
|
||||
Constant value: RangeInMeters * Utils.MetersToUnits
|
||||
|
||||
public const int MinTemp
|
||||
Minimum temperature in Celsius
|
||||
Constant value: -273
|
||||
|
||||
public const int MaxTemp
|
||||
Maximum temperature in Celsius
|
||||
Constant value: 9999
|
||||
|
||||
Methods
|
||||
public void UpdateActivation()
|
||||
Update the visual state of the object based on whether it's activated or not
|
||||
|
||||
public void Use(ActivationPropagation activation)
|
||||
No description provided
|
||||
Reference in New Issue
Block a user