Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Folder paths on macOS (yet again)

Discussion in 'Experimental Scripting Previews' started by orb, Aug 11, 2017.

  1. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,038
    I'm trying to get environment paths for an editor tool, but calls like
    System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments)) return my home directory instead. I can build the correct one manually, but it just doesn't feel right that most of the variables are still uselessly unimplemented.

    Does anyone other than me even care?
     
  2. joncham

    joncham

    Unity Technologies

    Joined:
    Dec 1, 2011
    Posts:
    276
    Please file a bug for this issue. If we don't fix this with the current version of Mono, we will at least ensure it's working with the latest version we are in process of upgrading to.
     
  3. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,038
    I filed a report and got a reply back that this isn't Unity's problem. So I guess there won't ever be any cross-platform APIs for getting document folders (found on both desktop and mobile platforms). Hard-coding all the way it is.