com.wallstop-studios.unity-helpers 2.0.0-rc71 → 2.0.0-rc72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/PrefabChecker.cs +1 -2
- package/package.json +1 -1
package/Editor/PrefabChecker.cs
CHANGED
|
@@ -573,13 +573,12 @@
|
|
|
573
573
|
int index = 0;
|
|
574
574
|
if (list is Object unityObject)
|
|
575
575
|
{
|
|
576
|
-
if (unityObject == null)
|
|
576
|
+
if (list.GetType() != typeof(Transform) && unityObject == null)
|
|
577
577
|
{
|
|
578
578
|
unityObject.LogError(
|
|
579
579
|
$"Field '{field.Name}' ({field.FieldType.Name}) on component '{componentType.Name}' has a null enumerable."
|
|
580
580
|
);
|
|
581
581
|
}
|
|
582
|
-
// Ignore all enumerable unity objects, they're spooky
|
|
583
582
|
continue;
|
|
584
583
|
}
|
|
585
584
|
foreach (object element in list)
|