In my Library folder I have 2 code files I need to change to fix 2 bugs but every time I restart Unity my fixes are gone. How do I make my fixes permanent? Is there a way to override the package source code from a script in my assets folder?
You can copy the whole package into the “Packages” folder to make it an “embedded” package. This will then be used instead of the one listed in your manifest.
.
If you do this you will be resposible for manually updating it but it will persist across recompiles.
.
It’s documented here: Unity - Manual: Install a package from a local folder and here Unity - Manual: Concepts
.
Once installed in a project, Unity treats package assets just like any other asset in the project, except that these assets are stored inside the package folder and are immutable. You can only permanently change content from Local and Embedded package sources.