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

HeartGameObject not visible (with solution) #29

Closed RenatiusvanSander closed 4 years ago

RenatiusvanSander commented 4 years ago

I share this solution with others. Newer Unity versions place the Haeart item of chapter five above or below the tiles. The camera cannot catch that. change z position to zero and everything is fine.

JaredHalpern commented 4 years ago

Thank you so much for this comment. Even though it's not an error, I will make a note of it in the README so that other readers can benefit from your solution for this pitfall.

RenatiusvanSander commented 4 years ago

Hello Jared, this happens when you position a game object. The z-position seems to be set randomly. Thanks you add this. Me took finding the solution an hour. Hope this help others.

Best regards Remy

JaredHalpern commented 4 years ago

I've added this to a newly created section, General Notes, and given you credit -- https://github.com/Apress/Devel-2D-Games-Unity/blob/master/README.md#general-notes