Unity's UI element level adjustment method

The rendering level of the UI determines the final display effect. The bottom layer is rendered first, and the upper layer is rendered later. The hierarchy is determined according to the following priority:

  1. The camera depth is set by the Depth property in the Camera control, and the larger the value is, the post-rendering;
  2. Canvas's Sorting Layer, about the lower post-rendering;
  3. The Order in layer of Canvas, in the same Sorting Layer, the larger the value, the later it will be rendered;
  4. The hierarchy of UI nodes, the tree structure of the number of UI nodes, and the lower nodes are rendered later.

 

 

For particle effects, the processing of levels is different from that of UI elements, which needs attention. In addition, the spine animation level may be the same or different from the UI elements in different setting modes, which is related to the setting.

 

Guess you like

Origin blog.csdn.net/huzhizhewudi/article/details/123592223