Version 2.1.0.0

ProgressBarAttributeUshortDrawer class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
public sealed class ProgressBarAttributeUshortDrawer : BaseProgressBarAttributeDrawer<ushort>
Draws values decorated with ProgressBarAttribute.
Inheritance

Constructors

ProgressBarAttributeUshortDrawer()
public ProgressBarAttributeUshortDrawer()

Methods

ConvertToDouble(UInt16)
Converts the generic value to a double.
protected override double ConvertToDouble(ushort value)
Parameters
System.UInt16 value

The generic value to convert.

Returns
System.Double

The generic value as a double.

DrawProgressBar(Rect, GUIContent, Double, Double, ProgressBarConfig, String)
Draws a progress bar for a ushort property.
protected override ushort 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
System.UInt16

Extension Methods

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.