- Home /
Gameobject invisible on iOS build
When i build my game project to iOS and i run the app it starts fine but when i press play the gamecard objects are invisible but they are interactable. Because this is a memory game and when you press 2 different cards you lose a live and i can press these card even tough they are invisible.
So far the Xcode log doesn't give errors and the issue is non existent on android and PC and i tried multiple things from different shaders and turning on settings to help building towards a iOS device.
So i wanted to ask if someone has any idea or experience in this situation.
Renderers on GameObjects can appear invisible for multiple reasons. Here are some that come to mind:
The Renderer is not enabled
The GameObject is on a layer that is not visible to the relevant camera
The GameObject's tag is "EditorOnly" and you are in a build (which you are)
The GameObject is not active
The Renderer is fully transparent
The Renderer is a CanvasRenderer and the Canvas is disabled
The Renderer is being drawn behind other objects
The Renderer is being drawn off-screen
The Renderer is masked
The Renderer's shader is not fully supported on the device
Probably the pass that shader needs to display is not supported on the iOS device. Or maybe the code is making one of the first 9 true only if you are on iOS?
Also, I forgot to mention: 11) The Renderer is a SpriteRenderer and is not displaying a sprite
Maybe it's number 7? The sorting order or sorting layer is incorrect? Maybe the render queue is incorrect? If you email me your project (gileadcosman@gmail.com), then I am sure I can fix it and I will post the answer (I will not post the actual project files).
Answer by junkfreak · Sep 18, 2020 at 04:48 PM
Ty for the response, i have been looking into your reasons and try to see but sadly i am not finding the issue with the first 9 reasons after checking and i am still looking at reason 10 by changing shaders and changing stuff like image type in unity because it seems iOS can be a little hard headed with this stuff. But so far still no solution and its really hitting my head hard. because i tried everything and searched everywhere but it just doesn't want to get fixed :( and there are so far i can see no errors in the build logs that could point me in some sort of direction.
Hi @junkfreak , have you found the solution? It is happening with me now and it has started pissing me off...
Your answer

Follow this Question
Related Questions
Vanishing models on iOS 1 Answer
Renderer on object disabled after level reload 1 Answer
How do I create an invisible joystick that appears anywhere on the iOS screen? 1 Answer
Some textures on iOS build are black?!?!?! 3 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers