Version: 2023.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.

描述

Creates a new VisualElement containing the contents of this Overlay.

If the requestedLayout cannot be used, then the system uses another layout. If the layout is not able to be created, the default Panel layout content is returned.