P
P
piffo2020-05-05 18:22:04
C++ / C#
piffo, 2020-05-05 18:22:04

Overlay ui on top of regular sprites?

I'm making a 2D platformer. It should be like this. The background (UI), on top of it are ordinary objects (character, earth, etc.), and already on top of all this there should be a pause menu (also UI). The background and objects are arranged normally, first the background, then the sprites. But the sprites are overlaid on top of the pause menu. How can this be fixed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
OblivionGM, 2020-05-05
@piffo

In the settings of the object (sprite) on the stage, in the inspector there is an Additional Settings section in which you can configure the sprite layer, called Order in Layer. Thus, the object on the first layer will be overlapped by the object on the second.

S
Shahnazar Sailaukan, 2020-05-05
@XVIIIAX

in 3D, put the UI away on the Z coordinate, this works with any object on the stage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question