Question by
Taigama · Aug 16, 2019 at 09:55 AM ·
texture2dmultithreading
Load Texture2D without UnityAPI
Hello everyone. I have to load tons of images and have to use multithreading.
public static Texture2D ParseToTexture(byte[] jpgData, string name)
{
Texture2D tex = new Texture2D(1, 1, TextureFormat.RGB24, true, true);
tex.LoadImage(jpgData);
tex.name = name;
return tex;
}
(Texture).LoadImage() doesn't work on otherthreads, are there anyways to deal with this problem?
Thank you.
Comment