i am using the default blue sky skybox shader front standard assets, it works fine on the mac, but as soon as i cross compile to the iphone, i just got the background color again, what am i making wrong?
i already changed the import settings of the graphics to a iphone-able format.
Sometimes, for reasons unknown to me, when I Build for iPhone in Unity it doesnât move the newly compiled app onto the iPhone. It, instead, continues to run the previous version of the app. So, in your case, maybe the skybox isnât displaying on the iPhone because the new change didnât compile and install properly from XCode? If so, it will fix itself by building again or doing a âclean all targetsâ in XCode.
** Has anyone else experience the type of problem I reported above? just curious. **
well, i can ensure, that is is the new version, and i have looked at startrooper (though never tried if it works when crosscompiling startrooper to be honest).
as far as i understand it, in edit / rendersettings, i set âskybox materialâ to âblue skyâ (or sunset, tried both), make sure, the main camera has âClear Flagsâ set to âSkyboxâ, make sure all skybox images are imported as âRGB Compressed PRVTC 4-Bitâ and that should do the trick?
the graphics seem pretty close to the limit of the iphone and it is a large scene. could this be some result of reduced clip plane on the iphone or something?
i noticed that i get a warning, i have this warning since i âdowngradedâ the project from unity pro to the unity iphone. didnât seem to do any harm, but maybe this has something to do with it?
This issue was driving me crazy a couple days ago - and it is definitely a bug with Unity (I have a report filed) - but I figured out that you can work around it by attaching a skybox component directly to your camera object.
just found out, what is happening, at least in my case.
of course i do have a scene in front of the game, a scene which handles the main menu. i am pretty sure, that i donât change anything to the rendersettings in this scene, but if you first go into the mainmenu, then via Application.LoadLevel() load the game, the rendersettings of the default skybox are gone. you have to set them script wise ( RenderSettings.skybox = ⌠) or like robur by using a component.
seems unity alters the default setting, but only on the iphone, because on the mac everything works fine.