コード例 #1
0
 protected override float DrawElement(Rect rect, float value)
 {
     return(SirenixEditorFields.FloatField(rect.Padding(2), value));
 }
コード例 #2
0
ファイル: SingleDrawer.cs プロジェクト: treert/om.unity.xx
        /// <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));
        }
コード例 #3
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));
 }