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

Application.OpenURL in Windows Store problem

Discussion in 'Windows' started by gudula, Feb 18, 2016.

  1. gudula

    gudula

    Joined:
    May 20, 2015
    Posts:
    125
    Hi

    I have an app in windows store with a problem. How do you handle this:
    Application.OpenURL(
    Application.persistentDataPath
    );

    It does not open in store but normally is ok.
     
  2. Pav3l_

    Pav3l_

    Joined:
    Feb 20, 2014
    Posts:
    7
    Probably need to add WebBrowser privilegedes to the app via manifest file. You can do so via player settings if I remember correctly.
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Application.persistentDataPath is not an URL. It points to a place on disk where you can save files in your game. I'm not exactly sure what you were expecting to happen.
     
  4. gudula

    gudula

    Joined:
    May 20, 2015
    Posts:
    125
    What is the other function to open explorer window to files? I dont actually need to goto webbrowser.
    This is for windows store?
    Application.persistentDataPath is this the only path you can use for windows store? How do you get into the windows pictures folder?
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Why would you want open an explorer window? Opening it for general purpose is not possible - Windows Store only allows file and folder pickers.

    To save/load stuff from pictures virtual folder you need to use platform specific StorageFile APIs.
     
  6. gudula

    gudula

    Joined:
    May 20, 2015
    Posts:
    125
    Do you have a short tutorial howto add it to your unity3d?
    Where do I download this?
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Add what? I don't understand your question.
     
  8. gudula

    gudula

    Joined:
    May 20, 2015
    Posts:
    125
    Where do I find this for unity3d?
    StorageFile APIs.
     
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
  10. gudula

    gudula

    Joined:
    May 20, 2015
    Posts:
    125
    Do you know what namespace to use, ie.
    using System.StorageFolder;
     
  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644