Bullet works fine, but it's invisible
I'm working with the space shooter tutorial. The bullet prefab works perfectly fine, it clones itself when fired, collides with the enemies and explodes, and even shows up in the hierarchy. For some reason, the gameobject doesn't decide to be visible, it's completely invisible. I'm not sure if it's a problem with layers, JPG files or etc.
Answer by spencerz · Feb 27, 2020 at 11:26 AM
I’m gonna guess that your bullet prefab needs the z position to be reset to 0. Whenever this happens to me it’s because my sprite’s z position coordinate is some far out number. Or the sprite is on the same layer as the background.
Your answer
Follow this Question
Related Questions
The bullet never destroyed!!! 2 Answers
Bullet hit a object, another object get destroyed 1 Answer
Shooting bullets from a ship 2 Answers