Search Unity

White meshes in Asset Bundled scene

Discussion in 'Editor & General Support' started by ColinAmuzo, Jan 26, 2017.

  1. ColinAmuzo

    ColinAmuzo

    Joined:
    Mar 20, 2013
    Posts:
    46
    Hi

    I am using Unity 5.4.4.

    I have a scene in my game which I have moved to an asset bundle to save install size (on Apple TV). The asset bundle is loaded via the Apple ODR API.

    If I build the asset bundle with another empty-ish scene open, when running on device, some of the meshes appear white (when they should be coloured).

    If I build the asset bundle with the scene-being-asset-bundled open, then the meshes appear correctly.

    Ordinarily, I do command line builds, so I can't really guarantee which scene will be open when the asset bundle is built. And I do see the issue when building from command line.

    I have read about the manual "shader stripping" setting in "Graphics Settings", and using "From Current Scene", but when I tried that, it just cleared all of the tick boxes, and the issue was still present.

    How can I fix this?

    Colin
     
  2. ColinAmuzo

    ColinAmuzo

    Joined:
    Mar 20, 2013
    Posts:
    46
    Forget it, I hadn't added the particular shaders to the "always included shaders" list.