- Home /
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: ![alt text][1]
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:
![alt text][2]
The question is, WHY SKYBOX DON'T CHANGE WHEN I BUILD THE APP? THANKS A LOT :) [1]: /storage/temp/83053-change1.png [2]: /storage/temp/83054-change2.png
Answer by ErickTornero · Dec 02, 2016 at 06:18 PM
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 :)
psdta: Sorry for my english.
Reference: https://docs.unity3d.com/ScriptReference/Shader.Find.html
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
Calculate a wanted velocity/direction? 1 Answer
How to reduce final build size? 1 Answer
Is it possible to not render a background (Skybox, Color, etc.) in WebGL? 1 Answer