Skip to content

Commit 4034588

Browse files
committed
fix: Made _suppressLogs work properly for all instance of TypeReference
1 parent 908efaa commit 4034588

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Runtime/TypeReference.Editor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,11 @@ private static void ReportObjectsWithMissingValue(string typeName)
8787

8888
foreach (var typeReferenceProperty in typeReferenceProperties)
8989
{
90-
if (typeReferenceProperty.FindPropertyRelative(nameof(_typeNameAndAssembly)).stringValue != typeName)
90+
if (typeReferenceProperty.FindPropertyRelative(nameof(_typeNameAndAssembly)).stringValue != typeName
91+
|| typeReferenceProperty.FindPropertyRelative(nameof(_suppressLogs)).boolValue) // also don't report the missing type if the logs were suppressed for this TypeReference instance.
92+
{
9193
continue;
94+
}
9295

9396
var targetObject = typeReferenceProperty.serializedObject.targetObject;
9497

0 commit comments

Comments
 (0)