Skip to content

Commit 0a43f4e

Browse files
Forgot a managedReferenceValue
Would only work in UNITY_2021_1_OR_NEWER otherwise
1 parent ae0f89f commit 0a43f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/Drawers/RawReferenceDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private void AvoidDuplicateReferencesInArray()
121121

122122
if (previousReferenceValue == currentReferenceValue)
123123
{
124-
rawReferenceProperty.managedReferenceValue = CreateInstance(currentReferenceValue);
124+
RawReferenceValue = CreateInstance(currentReferenceValue);
125125
rawReferenceProperty.serializedObject.ApplyModifiedProperties();
126126
}
127127

0 commit comments

Comments
 (0)