Addressables Inspector error when there are broken references in Addressable Groups

Issue #995 resolved
Joeri created an issue

I made a AssetReferenceT<BaseGameEffect> serialized field but was met with this error when trying to use it from the inspector window:

After some investigation it turns out there were some broken references in our project’s Addressable groups (localization package was removed but the assets were not cleaned up). Cleaning up those missing references will resolve this error, but I figured I’d report it here too since the default Unity AddressableReference field does not break in this situation.

Simply adding a nullcheck of the entry.TargetAsset to the AddressablesInspector.AddEntriesToTree method will fix this for Odin too.

Comments (2)

  1. Log in to comment