Hello Everyone. I have a bit of a problem that I can not figure out. I followed the video, wrote the code and played the game to see if the code did indeed populate the EnemyFormation Positions. It did. I was very excited. I went back into my scene to adjust the positions of the enemy game objects because they were out of the view for 800 x 600. When I tried to play it the graphics were no longer there! At all, even my player graphic, which I did not even touch, is missing. They appear in the hierarchy as child objects but the actual graphic isn’t displaying. I put everything back the way it was and tried to play. The issue persists. I have gone over the code and have found no errors, I made sure that the camera and the canvas are all set where they are not in front of the ships. At this point I am at a loss for any ideas how to fix it. I shut down both unity as well as monodevelope and also restarted the computer just in case. I can not figure this out. If anyone can help me I would be so grateful. Between me and both my rubber ducks we can’t figure it out. I have taken screen shots so you guys can see what I am talking about. I hope this makes sense.
I saw this last night but was only on my mobile @Simone_Dowsett and didn’t think I would be able to respond very easily. I just popped on to see if I could suggest anything but I see you have resolved it - fab.
I went back through every object, one by one and it looks like somehow the camera reset and was on top of my sprites, thats why I couldn’t see them. I felt pretty dumb once I figured it out. I worked for soo long trying to figure it out and it was a simple issue with the z coordinate of the camera. Haha. I suppose I wont make that mistake again. Everything else works great so hopefully I will be done with the game today. Did you see anything that stuck out to you? I just want to make sure everything looks right. Thanks again for the help.
So, what I’m hearing is this was a great opportunity that you seized to expand your person learning journey
Did you see anything that stuck out to you?
Z Index is normally one of the first things that will be suggested, the only other thing I noticed at a glance on my mobile, was that in your second from last screenshot, there are the positions, the camera gizmo, and the corner of something, but I couldn’t really tell what. I wondered if perhaps the placement of the positions/player or the camera had been moved perhaps and they were beneath it.
Great to hear you resolved it though, often more satisfying when you get to the issue yourself - well done
Thanks for posting. I spent half an hour trying to figure out why my code wasn’t working. When I saw your post, I checked my camera and was saddened when I found it right where it should be, but then I realized it might be the same problem different object. Sure enough, my EnemyFormation object was hiding behind the camera. My ships were spawning just fine, I simply could see them.