Z
Z
zeni1agent2022-03-04 23:06:37
Unity
zeni1agent, 2022-03-04 23:06:37

How to place object on top of ui?

I'm trying to place a 3D object on top of a UI Image
but it doesn't work. Can anyone give an example of how to add a 3d model on top of a UI Image in a 2d game. The
strange thing is that I have all the objects closer to me in the Z-coordinate.

62226e86995e0546968343.png62226eec40875447200792.png6222703e79eb7689919327.png622270a399094366776895.png62227125a5eaa815762058.png
622271d55ab30604223320.png

Another oddity is that Sprite objects ignore hierarchy. They are always above the UI Image and the only thing they react to is Additional Settings
6223579499cda133987250.gif

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2022-03-04
@freeExec

Either the canvas renders into a 3D world, or you render the 3D world into a texture and show it in the UI

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question