Version 3.3.1.2

BaseProgressBarAttributeDrawer<T> class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
public abstract class BaseProgressBarAttributeDrawer<T> : OdinAttributeDrawer<ProgressBarAttribute, T>
Common base implementation for progress bar attribute drawers.
Inheritance

Type Parameters

T

Constructors

BaseProgressBarAttributeDrawer()
protected BaseProgressBarAttributeDrawer()

Methods

ConvertToDouble(T)
Converts the generic value to a double.
protected abstract double ConvertToDouble(T value)
Parameters
T value

The generic value to convert.

Returns
System.Double

The generic value as a double.

DrawProgressBar(Rect, GUIContent, Double, Double, ProgressBarConfig, String)
Generic implementation of progress bar field drawing.
protected abstract T DrawProgressBar(Rect rect, GUIContent label, double min, double max, ProgressBarConfig config, string valueLabel)
Parameters
UnityEngine.Rect rect

UnityEngine.GUIContent label

System.Double min

System.Double max

ProgressBarConfig config

System.String valueLabel

Returns
T

DrawPropertyLayout(GUIContent)
Draws the property.
protected override void DrawPropertyLayout(GUIContent label)
Parameters
UnityEngine.GUIContent label

Initialize()
Initialized the drawer.
protected override void Initialize()
Extension Methods