This version of Unity is unsupported.

Overlay.CreateContent

Declaration

public UIElements.VisualElement CreateContent(Overlays.Layout requestedLayout);

Parameters

requestedLayout The layout that contents should be styled to match.

Returns

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

Description

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.