- Home /
Loading files at runtime into unity from anywhere on your file system?
Hi there, I have been struggling to get unity to work. Both Resources
and AssetBundles
seem to need to be loaded from a specific location but I am running Unity in a sandboxed environment and need to:
Download asset files from the internet into a specific location.
Load the assets into my application at runtime.
What is the process to do this and are there any caveats? i.e. like having to wait for the next frame/ application lifecycle to use them etc.
Answer by jtok4j · Feb 03, 2021 at 01:34 PM
Greetings,
Here is a project I did up to showis the simplist way to store an asset on your web server/internet location and get it while in a the application at runtime:
https://github.com/jtok4j/Fetch-N-Store
However, I realize that it doesn't fully answer all parts of your question, but this is the most simple way to retrieve internet-stored game info/assets. In general you load them at will within your scripts.
Keep on Creating!
Justin of JustinTime Studio http://unity3d.expert
Your answer
![](https://koobas.hobune.stream/wayback/20220613024432im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Exporting assets from Unity 5 to Unity 4 1 Answer
Set AssetBundle name in Asset Labels of an folder 3 Answers
Loading.IDRemapping AssetBundles 1 Answer
Build addressables in custom build script 4 Answers
Asset bundles not loading on mobile data 0 Answers