Missing sprites on Game window

Have been trying to build a megaman X like game as hobby. I was following a tutorial I am really newbie. The thing is that the game is working perfect, but on my Game window I have missing sprites like this example: https://gph.is/g/E1Xvlzr
As you can see, the bullet sprites being fired to the right are missing in Game window, but they are actually interacting with objects and being executed in Scene window. Also I added an enemy, but the sprite is also missing in Game window, tried making new objects with same properties but still the same issue. No errors on the scripts. Not player self box colliding as bullets are actually there, just Game window hiding the sprites.
Any idea how can I solve this?
Thanks for any help and comment!

Hello @rafagc092 ,
Could it be that the bullet GameObjects are spawned with a Z position that is either behind or very far away from the camera?

Wouldn’t that affect the bullets being shoot to the left side also?
I have verified and my bullet prefab has Z constraint and it is 0. Have played with the value without a desired effect.
Same is happening to every sprite I create, already verified that the background is not over the bullet nor player. Will upload a pic with the enemy, enemy is affecting the Player and can be destroyed with the weapon, but it is not being shown in Game window.
Any other idea why this is still happening?
Thanks for your help Ted!

6769549--782404--captura.png

So do I understand you correctly that none of the SpriteRenderers you instantiate shows up in the GameView?
If so, could you share how you are instantiating the different SpriteRenderers?

That is right, the game is working just fine, the thing is on GameView I cannot see some sprites, if I add a new sprite it is not being shown as well.
BTW, I’m just adding the sprite into SceneView to create the GameObject.
This is the instantiate for my sprite renderer:

6775973--783650--captura.png

I found the issue, my MainCamera had Position Z = 0, I edited this value and now I can see all the sprites in both Views. Thanks for your help!

1 Like

Great that you managed to resolve your issue and shared the solution!
Happy developing!

1 Like