Forum Discussion

Navid.64's avatar
Navid.64
Start Partner
6 months ago
Solved

Access to Assets in Remixable Worlds

If my Remixable World uses my own assets that are stored in my folders under [My Assets > My Folders], how will other users’ access to those assets work if they remix my world to create their own, and what will happen to the folder structure in their account?

  • There is another way you can do this. Instead of creating a props definition for the asset and linking an asset to it in the properties panel you can reference the asset directly in the code.

    asset: Asset = new Asset(BigInt("AssetID"))

    NOTE: Replace the string AssetID with the assets actual id. Also ensure the asset id is a string.

9 Replies

  • From my testing, it appears that assets are only accessible when they are assigned as properties. I haven’t found any other way to share private assets for remixable worlds (of course, their instances remain in the world).

    Could you confirm if this understanding is correct, or suggest alternative approaches?

    • gausroth's avatar
      gausroth
      MHCP Mentor

      There is another way you can do this. Instead of creating a props definition for the asset and linking an asset to it in the properties panel you can reference the asset directly in the code.

      asset: Asset = new Asset(BigInt("AssetID"))

      NOTE: Replace the string AssetID with the assets actual id. Also ensure the asset id is a string.

      • Navid.64's avatar
        Navid.64
        Start Partner

        Thank you gausroth​ for your informative response.

        It’s interesting that even after I deleted the asset from my library, and even though there are no references to it in the scene, it can still be created by your suggested method. Does Horizon Worlds keep it permanently on the cloud, or is it using some cache on my computer?

  • This I'm unsure. I think it is using the latest published version. This prevents other worlds from losing access due to accidental deletion.

    • Navid.64's avatar
      Navid.64
      Start Partner

      I tried remixing your world without changing anything, then private-published it, and it looks like it works fine. I’ve got one screenshot from the player and two from the editor to show you:

       

      • KevinJardine's avatar
        KevinJardine
        Start Partner

        Thank you so much! This is a big relief. If you get a few minutes I'd love to get a DM with any comments you might have on the world.