Description
The HeaderRight
property of the Editor.SceneOverlayWidget
class is used to manage the layout of the right 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 right section.
Usage
To use the HeaderRight
property, you need to have an instance of the SceneOverlayWidget
class. You can then access the HeaderRight
property to modify the layout of the right section of the header. This can include adding, removing, or rearranging UI components as needed.
Example
// Assuming you have an instance of SceneOverlayWidget
SceneOverlayWidget overlayWidget = new SceneOverlayWidget();
// Access the HeaderRight property
Editor.Layout headerRightLayout = overlayWidget.HeaderRight;
// Example: Add a button to the right header layout
Button myButton = new Button();
headerRightLayout.Add(myButton);
// Example: Customize the layout further
headerRightLayout.SetSpacing(10);
headerRightLayout.SetPadding(5);