I am currently having an issue with the Orthographic Camera asset. I’m pretty sure that this asset was made by @britzl, so I’m wondering if he can provide some insight. If anyone else has any ideas I would love to hear it!
Each time I save the script, and then close Defold, the camera.script resets. The changes to it automatically goes back to the defaults. I would even synchronize it, and then build it to a community page. It would still reset to the defaults. Any ideas what the issue may be?
It’s probably because you are working on a synchronized fetched library, which can’t be changed permanently. If you want to modify it, you have to copy the script and make changes locally. Of course remember to use your new script instead of the library then. If you want to contribute to the community, create a pull request
Exactly. The files in a library/dependency can’t be changed permanently. They should be considered read-only. In the case of Orthographic it should work for you to copy camera.script to your project and make the changes you need. Do keep in mind though that you will have to repeat the process if a new version of Orthographic is released and you want to incorporate the changes in your own project.
What kind of changes do you need to make? Perhaps it’s something that could benefit others in which case we should include the changes into the Orthographic project itself.