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
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is there any way to change the path for Data?

Discussion in 'Project Tiny' started by acha_yz, Apr 24, 2020.

  1. acha_yz

    acha_yz

    Joined:
    Apr 8, 2020
    Posts:
    2
    Currently, the app will always load the resources in './Data' relatively to the html. Is there any way to change the path to a absolute one, like "https://foo.com/Data"?
    Our website put the html to a domain name while other assets will put to a different CDN domain name. So we need to set the ./Data to a different path at the beginning.
     
  2. kevinmv

    kevinmv

    Unity Technologies

    Joined:
    Nov 15, 2018
    Posts:
    51
    Currently there isn't support for loading from non-relative paths, but customizing the root data directory is something we can support. We can take a look.

    Thanks!
     
  3. acha_yz

    acha_yz

    Joined:
    Apr 8, 2020
    Posts:
    2
    Great, Thanks.