Apress / Devel-2D-Games-Unity

Source Code for 'Developing 2D Games with Unity: Independent Game Programming with C#' by Jared Halpern
https://www.apress.com/us/book/9781484237717
Other
215 stars 53 forks source link

Chapter 7 - Camera Manager - Pg 251 - This section breaks camera - Causes white background #50

Open KimberlyLClark opened 3 years ago

KimberlyLClark commented 3 years ago

After following instructions on pages 251 - 255, the camera/virtual camera no longer works properly. It will not render the background images - water, land, consumables - coins, heart, etc. It will only render the spawned player character and the spawned enemy character, as well as the UI - all over a white background. It does follow the player character as it walks around on a completely white background.

Gustavoldp commented 1 year ago

I had the same error just now, for anyone coming here looking for a solution, verify if the z position of your PlayerSpawnPoint is the same as the layers z position, setting the vCam z position to a negative number and everything else to 0 solved the problem for me.