Hello, I have this instantiated Prefab that is visible in scene and game view, but when i build & run, it doesn't show up. It shows on the camera view also. Any clues about what's happening?
I have the exact same issue. In addition, for me, the prefab is shown if it is loaded from the start, but not if it is instantiated during runtime. So anything I add to the scene in the editor is shown. But if I Instantiate the exact same prefab from code, it is not shown in my builds, just in scene view and game view in the editor. Very frustrating. Let me know if you find any way to resolve this issue....
Hi again. Your post is from 2019, but in case anybody else is reading, this is probably due to the execution order of scripts may vary between the editor and the builds. For me, the objects I was trying to instantiate was UI elements, and they should belong to a canvas parent. However, the canvas transform was assigned in the Start() method of a script, while the cards were being created before that script executed its Start(). That means the cards were instantiated, but did not have its coordinates in relation to the canvas, but in world space. I could probably have noticed this by adding using LookAt with the camera, to see that the cards were actually there, but in a weird place.