Version: 2022.1

Overlay.CreateContent

切换到手册
public UIElements.VisualElement CreateContent (Overlays.Layout requestedLayout);

参数

requestedLayout The layout that contents should be styled to match.

返回

VisualElement A new Visual Element containing the contents of the Overlay.

描述

Create a new VisualElement containing the contents of this Overlay.

It is not guaranteed that this method will return contents in the requested layout. If the layout is not able to be created, the default Panel layout content is returned.

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