Hi Everyone,
I’ve recently updated GitHub - CareBoo/Serially: Adds a unity-supported, SerializableType class and an inspector for editing SerializeReference fields. to support the latest unity version (2021.2). It provides tools for polymorphic dependency injection in the editor!
This package adds an inspector to [SerializeReference] fields that lets you inject any type. It also adds a SerializableType class that lets you serialize a persistent type reference! Rename the type, move the type around in your project, and the type reference will remain.
I use [Guid()] to persist the type reference. Just make sure that attribute stays the same and the type reference will remain. During build time, this guid gets converted to an assembly type reference.