简体   繁体   中英

Sorting game object in front of canvas

how do I sort game object in front of canvas?

notice that Render Mode set to screen space - overlay

hope you have another option instead of change render mode to camera

UI elements in the Canvas are drawn in the same order they appear in the Hierarchy. The first child is drawn first, the second child next, and so on. If two UI elements overlap, the later one will appear on top of the earlier one. In case you need to render a 3d gameobject you cannot use the screen space overlay, and need to switch to screen sapace camera. Everything is very well explained here .

If you could share more details of the concrete problem, what is the outcome of your attempt and what is the result expected, you will be able to obtain more accurate help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM