Package overwrites

Ever since updating to the package version I’ve had an issue with direct changes to code being undone when starting Unity.

Specifically I always used to just change this field in RichPath Class to public, need access to it for reasons…

readonly List parts = new List();

Any workarounds for this? Apart from copying the RichPath Class?

Hi

Packages in the Library/PackageCache folder are assumed to be immutable. It is possible to embed a package in the Asset folder which will allow you to make changes. I think in the most recent versions of Unity (2020?) this is possible from the package manager. Otherwise you can use a plugin like this: https://forum.unity.com/threads/easily-embed-packages-to-your-project-with-this-extension.766733/

Ty, I will look into it.

1 Like