Making a CubeMap from texture at run time

Hello All,

I need to make spherical cubemap with specified properties in the attachment from a texure at run time and assign it to skybox. I am able to make 6 faced cubemap on runtime. But no clue about Spherical cubemap.

Can someone guide me in right direction to do that ? Thanks in advance.
Thanks in advance

As per my understanding Unity doesn’t support changing the texture import settings at runtime. Because once the texture goes in to build it will automatically converted deployed platform friendly texture formats and it will no longer hold original texture data.

So, coming back to your question - Use “skybox / 6 sided” shader on your material and assign all 6 sided textures to it at runtime. and then assign this texture as skybox material.

One more way would be having a custom cube mesh with inverted normals as huge cube skybox and keep all your game elements inside this custom skybox (in this approach you can use only one texture for one skybox).

This are the 2 possible ways I can think as of now. Lets see if anybody knows other ways do it better.