URL: https://wiki.studiominus.nl/internalReference/GaugeBehaviour.html
Title: People Playground Modding - GaugeBehaviour
==================================================

public abstract class GaugeBehaviour
Inherits MonoBehaviour
Base class for all gauge items
Fields
public GameObject GaugeLabelPrefab
[SkipSerialisation]
Reference to the little number prefab on the gauge

public Transform Arm
[SkipSerialisation]
Reference to the actual gauge arm

public Transform GaugeCenter
[SkipSerialisation]
Reference to the transform that represents the center of the gauge display

public float MinAngle
The minimum arm angle

public float MaxAngle
The maximum arm angle

public float GaugeRadius
The radius of the gauge display

public float LabelOffset
The radial offset of the labels

public int LabelCount
[Min(2)]
The amount of labels to generate

Methods
protected abstract float GetProgress()
Should be implemented to return the current gauge level from 0.0 to 1.0

protected abstract string GetDisplayValueFor(float progress)
Should be implemented to return the label text for a given gauge level from 0.0 to 1.0

protected void SetArm(float i)
Sets the Arm's rotation level to the given gauge level i value from 0.0 to 1.0