--- Updated (18th June)----
Use AssetBundles to manage my dynamic contents from server.
Sorry but none of the below provided solution are actually work as I have tried all of them and some of them are similar that I could find via Internet.
During some research this is what I've found:
"Basically, anything that UnityEngine makes available to you can't be touched in a thread you create with System.Threading."
"The only thing you can't do is use Unity API methods themselves across different threads, as they are not thread-safe, but that won't prevent you from doing background processing tasks."
I have actually "solved" this issue.
The app will hang only when it runs on the computer, downloading the images from server and save them into Application.persistentDataPath.
However, it will not hang when it's built and run on my mobile devices, under the same codes.
Without Internet connection interruption, I've checked those large images are completely downloaded and stored nicely in the persistentDataPath.
Feel awkward and unpleasant even though it is not an issue to me anymore.
I wish those who encounter this issue can at least try my method, check if it is "hanged" when the app is built and run on your device, especially saving the large image files into the device local storage, instead running in your computer.
unity
has nothing to do with Unity game engine.