protected override float DrawElement(Rect rect, float value) { return(SirenixEditorFields.FloatField(rect.Padding(2), value)); }
/// <summary> /// Draws the property. /// </summary> protected override void DrawPropertyLayout(GUIContent label) { var entry = this.ValueEntry; entry.SmartValue = SirenixEditorFields.FloatField(label, entry.SmartValue, GUILayoutOptions.MinWidth(0)); }
/// <summary> /// Draws the property. /// </summary> protected override void DrawPropertyLayout(IPropertyValueEntry <float> entry, GUIContent label) { entry.SmartValue = SirenixEditorFields.FloatField(label, entry.SmartValue, GUILayoutOptions.MinWidth(0)); }