Version: 2023.1
言語: 日本語
Panels
Coordinate and position systems

Draw order

The draw order of elements in the visual tree follows a depth-first search. Child visual elements appear on top of parent elements. UI Toolkit draws child elements in the order of the sibling list. The draw order is the following:

  1. 一番上のビジュアル要素
  2. そのビジュアル要素の最初の子要素
  3. 子孫の要素の子要素

The diagram below shows the draw order of a visual tree:

ビジュアル要素の描画順序
ビジュアル要素の描画順序

To change the draw order of visual elements in C#, use the following functions:

To change the draw order of sibling visual elements, use the following functions:

Panels
Coordinate and position systems
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961