Fix for serialized properties changing fields with reference types doesn't mark object as dirty

This commit is contained in:
VladV 2024-01-24 13:58:07 +04:00
parent 6a5af4e687
commit 57e726cc4f
3 changed files with 8 additions and 2 deletions

View File

@ -36,7 +36,7 @@ namespace TriInspector.Drawers
if (EditorGUI.EndChangeCheck()) if (EditorGUI.EndChangeCheck())
{ {
propertyValue.SmartValue = value; propertyValue.SetValue(value);
} }
} }

View File

@ -46,7 +46,7 @@ namespace TriInspector.Drawers
if (EditorGUI.EndChangeCheck()) if (EditorGUI.EndChangeCheck())
{ {
_propertyValue.SmartValue = value; _propertyValue.SetValue(value);
} }
} }
} }

View File

@ -33,5 +33,11 @@ namespace TriInspector
Property.SetValue(value); Property.SetValue(value);
} }
} }
[PublicAPI]
public void SetValue(T value)
{
Property.SetValue(value);
}
} }
} }