UnauthorizedAccessException errors with Odin 2.0.0.0

Issue #399 wontfix
Former user created an issue

We just updated to Odin 2.0.0.0 via the Asset store. We are running 18.2 (special build). I am getting the following errors in the unity console:

UnauthorizedAccessException: Access to the path "Assets/Plugins/Sirenix/Readme.txt" is denied. UnauthorizedAccessException: Access to the path "Assets/Plugins/Sirenix/Readme.txt.meta" is denied. nauthorizedAccessException: Access to the path "Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/OdinUpgrader.cs" is denied. UnauthorizedAccessException: Access to the path "Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/OdinUpgrader.cs.meta" is denied.

All of our code is under Perforce source control so all of these files are read only by default. I'm not sure what is happening under the hood but we can't assume that these files are checked out all the time. Is there a way to work around this, or should I let the files gets modified and then check them in.

Related, the Odin Getting Started dialog always shows up on play for me. Maybe as a results of you wanting to change (delete?) the readme and the upgrader.

Comments (1)

  1. Bjarke Elias

    Hey,

    Yeah, Odin needs write privileges in order to install and upgrade itself properly. But once installed then you should be good.

    I would suggest you imported Odin into a clean Unity project, and once it's done, then made a new unity package from there, and imported that into your project that doesn't have write access.

    The OdinUpgrader.cs should have deleted itself after a successful install, and after that is gone there will be no code triggering the Getting Started Guide dialog to pop up.

  2. Log in to comment