Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

PersistentDataPath UnauthorizedAccessException?!? Unity broken?

Discussion in 'Android' started by Ikaro88, Apr 29, 2020.

  1. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    296
    Hi I am just try to do thisif (!Directory.Exists(Prepath))

    with Prepath = Path.Combine(Application.persistentDataPath, "Triestine");


    I get the error UnauthorizedAccessException, but why? Unity not ask ANY permission AND the also in settings no permission is asked....the unity version is 2019.1.6 there is any unity problem with this version that i not know?

    PLEASE help
     
  2. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    296
    FIXED.
    Not ask me how but with an upgrade to the last unity version the problem is fixed