Ejemplo n.º 1
0
        /// <summary>
        /// Draws the property.
        /// </summary>
        protected override void DrawPropertyLayout(IPropertyValueEntry <ulong> entry, GUIContent label)
        {
            long value = SirenixEditorFields.LongField(label, (long)entry.SmartValue);

            if (value < 0)
            {
                value = 0;
            }

            entry.SmartValue = (ulong)value;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Draws the property.
        /// </summary>
        protected override void DrawPropertyLayout(IPropertyValueEntry <uint> entry, GUIContent label)
        {
            long value = SirenixEditorFields.LongField(label, entry.SmartValue);

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

            entry.SmartValue = (uint)value;
        }
 protected override long DrawElement(Rect rect, long value)
 {
     return(SirenixEditorFields.LongField(rect.Padding(2), value));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Draws the property.
 /// </summary>
 protected override void DrawPropertyLayout(IPropertyValueEntry <long> entry, GUIContent label)
 {
     entry.SmartValue = SirenixEditorFields.LongField(label, entry.SmartValue);
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Draws the property.
        /// </summary>
        protected override void DrawPropertyLayout(GUIContent label)
        {
            var entry = this.ValueEntry;

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