Exemplo n.º 1
0
        /// <summary>
        /// Draws the property.
        /// </summary>
        protected override void DrawPropertyLayout(GUIContent label)
        {
            long value = SirenixEditorFields.DelayedLongField(label, this.ValueEntry.SmartValue, GUILayoutOptions.MinWidth(0));

            if (value < uint.MinValue)
            {
                value = uint.MinValue;
            }
            else if (value > uint.MaxValue)
            {
                value = uint.MaxValue;
            }

            this.ValueEntry.SmartValue = (uint)value;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Draws the property.
        /// </summary>
        protected override void DrawPropertyLayout(IPropertyValueEntry <uint> entry, DelayedAttribute attribute, GUIContent label)
        {
            long value = SirenixEditorFields.DelayedLongField(label, entry.SmartValue);

            if (value < uint.MinValue)
            {
                value = uint.MinValue;
            }
            else if (value > uint.MaxValue)
            {
                value = uint.MaxValue;
            }

            entry.SmartValue = (uint)value;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Draws the property.
 /// </summary>
 protected override void DrawPropertyLayout(GUIContent label)
 {
     this.ValueEntry.SmartValue = SirenixEditorFields.DelayedLongField(label, this.ValueEntry.SmartValue, GUILayoutOptions.MinWidth(0));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Draws the property.
 /// </summary>
 protected override void DrawPropertyLayout(IPropertyValueEntry <long> entry, DelayedAttribute attribute, GUIContent label)
 {
     entry.SmartValue = SirenixEditorFields.DelayedLongField(label, entry.SmartValue);
 }