Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Unity Trying To Get Write Access To Project Settings On Play/reload

Discussion in '2019.1 Beta' started by snacktime, Apr 10, 2019.

  1. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    2,835
    Not a big deal but forces us to checkout project settings in version control. Giving it write access doesn't solve the problem, it never actually writes anything.

    UnauthorizedAccessException: Access to the path "C:\Games\aigame\AiClient\ProjectSettings\XRSettings.asset" is denied.
    System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
    System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    System.IO.StreamWriter..ctor (System.String path) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)
    (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string)
    UnityEditorInternal.VR.XRProjectSettings.Internal_SaveSettings () (at C:/buildslave/unity/build/Modules/VREditor/Mono/XRPackageSettings.cs:99)
    UnityEditorInternal.VR.XRProjectSettings.OnDestroy () (at C:/buildslave/unity/build/Modules/VREditor/Mono/XRPackageSettings.cs:64)
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    2,052
unityunity