(Case 1117559) Sprites showing up as solid pink in Packed Play Mode

Hello,

I don’t know if this is a bug or if I’m doing something wrong.

For instanced prefabs that are in packed assets, they are coming out as solid pink when using Packed Play Mode.

Expected result (correct in Fast and Virtual modes):
4107634--359947--upload_2019-1-16_12-33-38.png

Actual result in Packed Play Mode:
4107634--359944--upload_2019-1-16_12-33-11.png

It looks like this problem happens only when the iOS platform is selected.

Submitted as bug Case 1117559.

Since I am building an iPhone game, being able to properly test Addressables in Packed Play Mode without having to build an actual build every time is very important to reduce development time.

packed play mode uses the built bundles. your bundles are buit for iOS, therefore the shaders are compiled for iOS, and iOS shaders are not compatible with pc (therefore the pink).
Unity should fix loading in editor so that the shader is replaced with the editor one.

as a workaround, you can manually switch the shader of your materials:

foreach (material in bundle)
    material.shader = Shader.Find(material.shader.name);

or build the bundles for standalone when testing in packed mode (I do this, as no runtime script is required)

2 Likes

Thank you M_R. Makes sense.

Apparently this is marked as “won’t fix”:

1 Like

this is happening to me even when the build target is Standalone64, and I’m running the editor in windows 64bit. any ideas?

1 Like

I think this is an unrelated issue. The initial ticket was clearly due to platform incompatibility. Post the steps you’ve taken here. If it looks like a bug, you may need to file an actual ticket, but if it’s just a workflow problem, perhaps we can solve it here.

2 Likes