G
G
Grayfox902021-02-24 14:44:34
Unity
Grayfox90, 2021-02-24 14:44:34

How to solve the problem with the camera (Perspective) in a 2D project on Unity?

For a 2D game on Unity, greyboxing has already been done, for tests, but here's the problem. Since this is a metroidvania with the Parallax effect, it was decided to use perspective. I'm using standard Cinemashine. While running, such artifacts appear as on the screen. Roughly speaking, parts of the floor simply disappear from view. The character is on Z0 as is the surface he is running on.

spoiler
60363b98a932d295744314.png

Also sometimes appears on the ceiling
spoiler
60363bd24a1d2078036559.png


I can't figure out what the problem is. The project uses the Universal Render Pipeline.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question