diff --git a/Assets/BetterCommons/Editor/Drawers/SerializeReferenceField.cs b/Assets/BetterCommons/Editor/Drawers/SerializeReferenceField.cs index a92d01a..2ea976c 100644 --- a/Assets/BetterCommons/Editor/Drawers/SerializeReferenceField.cs +++ b/Assets/BetterCommons/Editor/Drawers/SerializeReferenceField.cs @@ -25,7 +25,7 @@ public class SerializeReferenceField : VisualElement private Label _bufferLabel; #endif - public PropertyField PropertyField { get; set; } + public PropertyField PropertyField { get; private set; } public long UpdateInterval { @@ -142,7 +142,7 @@ private void Update() { using (var e = SerializedPropertyChangeEvent.GetPooled(property)) { - e.target = this; + e.target = PropertyField; panel?.visualTree.SendEvent(e); } } diff --git a/Assets/BetterCommons/package.json b/Assets/BetterCommons/package.json index 55c7216..8528e85 100644 --- a/Assets/BetterCommons/package.json +++ b/Assets/BetterCommons/package.json @@ -1,7 +1,7 @@ { "name": "com.tdw.better.commons", "displayName": "Better Commons", - "version": "0.0.49", + "version": "0.0.50", "unity": "2021.3", "description": " ", "dependencies": {