- Home /
How to change loaded 360 image to cubmap with script ?
Hello,
Well I load a 360 image dynamically from server as texture, but I want to change the type to mapCub with script. How can I achieve this?
Code to load image:
WWW www = new WWW(url);
// Wait for download to complete
yield return www;
Texture2D texture = new Texture2D(1024, 512, TextureFormat.DXT5, false);
www.LoadImageIntoTexture(texture);
thx,
Comment
Your answer
Follow this Question
Related Questions
Scaling / Resizing an Image (Texture2D) 6 Answers
How do you crop a Texture2d 1 Answer
Image is not loading into Texture 0 Answers
Stop Texture2D Compression 0 Answers
Get multiple images from online server and download them to android app 1 Answer