コード例 #1
0
 protected override double DrawElement(Rect rect, double value)
 {
     return(SirenixEditorFields.DoubleField(rect.Padding(2), value));
 }
コード例 #2
0
 /// <summary>
 /// Draws the property.
 /// </summary>
 protected override void DrawPropertyLayout(IPropertyValueEntry <double> entry, GUIContent label)
 {
     entry.SmartValue = SirenixEditorFields.DoubleField(label, entry.SmartValue);
 }
コード例 #3
0
ファイル: DoubleDrawer.cs プロジェクト: treert/om.unity.xx
        /// <summary>
        /// Draws the property.
        /// </summary>
        protected override void DrawPropertyLayout(GUIContent label)
        {
            var entry = this.ValueEntry;

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