Change SkyBox in build mode

Hi, I’m developing an app for android in VR, I’ve achieved that Skybox change at Runtime, it works Ok :).

But the problem is when I build my app for android or windows, the Skybox don’t change, so I don’t have idea what is happening, here is my code to change it:
83053-change1.png

Note: I maked material for skybox by script, for test I proob by simple array of bytes to generate skybox material, it happens at runtime:

83054-change2.png

The question is, WHY SKYBOX DON’T CHANGE WHEN I BUILD THE APP?
THANKS A LOT :slight_smile:

Ok, I solved this :), maybe it helps to someone.

I was creating my material by : Shader.Find(“Mobile/Skybox”);
But I didn’t add this Shader to Proyect Compile, so the solution was:

Edit > Proyect Settings > Graphics > → ‘Always Include Shaders’, change the size+, and add the Mobile/Skybox, It allow me to use this shader at Build mode :slight_smile:

psdta: Sorry for my english.

Reference: