I\'m building a client-side Android app in Unity, and when it downloads a jpg from an AWS S3 server, the result comes back as a System.IO.Stream.
However my limited know
You are looking for the LoadImage function from the Texture2D class. This function converts PNG/JPG image byte array into a texture.
Texture2D tex = new Texture2D(2, 2); tex.LoadImage(stream);
The stream variable must be byte array(byte[]) from the internet / AWS S3 serve.
stream
byte[]