Skip to main content

Class BatterySystemEditor

Custom editor for the BatterySystem component.

[CustomEditor(typeof(BatterySystem))]
public class BatterySystemEditor : BaseBatterySystemEditor

Inheritance​

Inherited Members​

Properties​

Bar_HighValue​

The progress bar's max value.

protected override float Bar_HighValue { get; }

Property Value​

float

Bar_Label​

Label displayed in the progress bar.

protected override string Bar_Label { get; }

Property Value​

string

Bar_Value​

Current value to display in the progress bar.

protected override float Bar_Value { get; }

Property Value​

float

MainColor​

Color used for the progress bar and debug box borders.

protected override Color MainColor { get; }

Property Value​

Color

Methods​

OnDrainInvoked(float)​

Callback function when the drain button is clicked.

protected override void OnDrainInvoked(float drainAmount)

Parameters​

NameTypeDescription
drainAmountfloatAmount to drain from system.