Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Streaming assets folder VS Resources Folder in Unity?

Tags:

unity3d

I want to Know the difference between Streaming assets folder and resources folder in Unity3d?

like image 356
user44356 Avatar asked Dec 18 '22 04:12

user44356


2 Answers

Want to extend answer by holo559.

Streaming Assets are just copied as files and can thus be accessed as such. Useful for including files like sqlite databases or other files you want to be able to use StreamReader on. They do not work on some platforms such as WebGL due to the web not having filesystem support. Can also be interchanged during runtime.

Resources are embedded into your program and are therefore platform independent. Useful for having example text files for configurations such as json or yml files.

like image 135
Applejag Avatar answered Jun 20 '23 14:06

Applejag


Streaming Assets : Any files placed in StreamingAssets are copied as it is to a particular folder on a target machine. Any asset placed inside StreamingAssets can be used while the application is running.


Resources : Resources class allows you to find and access Objects including assets. You can access assets using "Resources.Load" stored in Resources. All assets in the "Resources" folders will be included in a build. This resources folder comes handy when we have to access multiple assets, instead of using their path names we can use its reference.

like image 31
thecoderbot Avatar answered Jun 20 '23 15:06

thecoderbot