private void Draw(UTinyObject.PropertiesContainer container, IProperty <UTinyObject.PropertiesContainer, float> property)
        {
            var current = property.GetValue(container);
            var value   = EditorGUILayout.FloatField(property.Name, current);

            if (value != current)
            {
                property.SetValue(container, value);
            }
        }
Exemplo n.º 2
0
 private void Draw(UTinyObject.PropertiesContainer container, IProperty<UTinyObject.PropertiesContainer, float> property)
 {
     var isOverridden = (property as IUTinyValueProperty)?.IsOverridden(container) ?? true;
     UTinyEditorUtility.SetEditorBoldDefault(isOverridden);
     var current = property.GetValue(container);
     var value = EditorGUILayout.FloatField(property.Name, current);
     UTinyEditorUtility.SetEditorBoldDefault(false);
     if (value != current)
     {
         property.SetValue(container, value);
         PushChange(container, property);
     }
 }