Support Forum

VersionedMonoBehaviour Script Edits

I’m trying to make edits to some of the turn based example scripts, but I don’t understand how to work with the scripts deriving from “VersionedMonoBehaviour”. Is there a resource to understand what this is?

Thank you,

Hi

That is just a simple wrapper around the regular MonoBehavior which makes it easier for me as a package author to handle upgrades. You can usually replace it with a regular MonoBehavior.
I would recommend that you do not edit the scripts directly, instead make a local copy of them.

Will do. I accessed the package using a scoped registry. Is there a simple way to convert the package to a local copy?

I mean that you copy the script from the package to your own project and edit it there.
Not editing the files that this package includes will make it much easier for you to ugprade in the future.