U
U
Uncle Bogdan2021-12-07 14:54:12
Unity
Uncle Bogdan, 2021-12-07 14:54:12

How to fix sprite overlay issue?

The video shows that the sprites of some characters are badly superimposed on the sprites of others and flicker. How to fix it?

https://youtu.be/8FFIz5iqOvg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GFX Data, 2021-12-08
@motkot

You can hardcode the sorting of objects in/by group. It is especially convenient if the object is composite, consisting of several sprites.
https://docs.unity3d.com/Manual/class-SortingGroup.html

G
GavriKos, 2021-12-07
@GavriKos

Google z-fight. There are several solution methods

M
mustGamedev, 2021-12-08
@mustGamedev

At the time of the attack, change the layer of the character's sprite to a higher layer, and so on in turn. Crutch but so far that's what came to mind

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question