Description
The HeaderLeft
property of the Editor.SceneOverlayWidget
class is used to access or modify the layout of the left section of the header in a scene overlay widget. This property is of type Editor.Layout
, which allows for the customization and arrangement of UI elements within the header's left section.
Usage
To use the HeaderLeft
property, you need to have an instance of the SceneOverlayWidget
class. You can then get or set the layout for the left header section using this property. This is useful for adding custom UI elements or adjusting the layout to fit specific design requirements.
Example
// Assuming 'sceneOverlayWidget' is an instance of SceneOverlayWidget
Editor.Layout leftHeaderLayout = sceneOverlayWidget.HeaderLeft;
// Modify the layout as needed
leftHeaderLayout.Add(new Editor.Button("My Button"));
// Set the modified layout back if necessary
sceneOverlayWidget.HeaderLeft = leftHeaderLayout;