Serialized Addressables Asset Reference Inspector

Issue #644 new
Gunther Fox created an issue

Changing the value of an AssetReferenceGameObject (from the addressables package) on a prefab then saving (Ctrl + S) spams the following error in the console:

Repro Steps:

  1. Start a brand new project in Unity 2019.3.3f1
  2. Import the Odin 2.1.11 package
  3. Install the Addressables package via Package Manager
  4. Create two empty prefabs and mark them as addressable
  5. Add a script that serializes an AssetReferenceGameObject

    1. public class HasAddressablesRef : MonoBehaviour { public AssetReferenceGameObject ref; }
  6. Add the script to one prefab

    1. Set the asset reference variable in the inspector to the other prefab
    2. Without selecting any other objects, save (Ctrl + S)

I’ve included a repro project with everything above except the Odin package. The prefab Cube has the script.

Untiy Version: 2019.3.3f1
Odin Inspector & Serializer: 2.1.11

Windows 10

Editor Only mode is not enabled.

Comments (0)

  1. Log in to comment