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

            entry.SmartValue = SirenixEditorFields.DoubleField(label, entry.SmartValue);
        }