Navigation
API > API/Editor > API/Editor/VREditor > API/Editor/VREditor/UI
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- AVREditorBaseActor
- AVREditorFloatingUI
References
| Module | VREditor |
| Header | /Engine/Source/Editor/VREditor/Public/UI/VREditorFloatingUI.h |
| Include | #include "UI/VREditorFloatingUI.h" |
Syntax
class AVREditorFloatingUI : public AVREditorBaseActor
Remarks
Represents an interactive floating UI panel in the VR Editor
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVREditorFloatingUICreationContext | CreationContext | All params used to create this panel if this panel has a UMG widget and was created via BP. | |
| FIntPoint | Resolution | Resolution we should draw this UI at, regardless of scale | |
| TSharedPtr< SWidget > | SlateWidget | Slate widget we're drawing, or null if we're drawing a UMG user widget | |
| TObjectPtr< UUserWidget > | UserWidget | UMG user widget we're drawing, or nullptr if we're drawing a Slate widget | |
| TObjectPtr< class UVREditorWidgetComponent > | WidgetComponent | When in a spawned state, this is the widget component to represent the widget | |
| TObjectPtr< class UStaticMeshComponent > | WindowMeshComponent | The floating window mesh | |
| float | WorldPlacedScaleFactor |
Constructors
| Type | Name | Description | |
|---|---|---|---|
AVREditorFloatingUI
(
const FObjectInitializer& ObjectInitializer |
Default constructor which sets up safe defaults |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector | Returns a scale to use for this widget that takes into account animation | ||
| void | |||
| VREditorPanelID | GetID () |
Gets the ID of this panel. | |
| float | Gets the initial size of this UI | ||
| UStaticMeshComponent * | Returns the mesh component for this UI, or nullptr if not spawned right now | ||
| UVREditorUISystem & | GetOwner () |
Returns the owner of this object | |
| const UVREditorUISystem & | GetOwner () |
Returns the owner of this object (const) | |
| float | GetScale () |
Gets the scale | |
| FVector2D | GetSize () |
Returns the actual size of the UI in either axis, after scaling has been applied. | |
| TSharedPtr< SWidget > | Gets the current slate widget. | ||
| UUserWidget * | Gets the current user widget of this floating UI, return nullptr if using slate widget | ||
| T * | Returns casted userwidget | ||
| UVREditorWidgetComponent * | Returns the widget component for this UI, or nullptr if not spawned right now | ||
| bool | IsUIVisible () |
||
| void | SetCollision
(
const ECollisionEnabled::Type InCollisionType, |
Set collision on components | |
| void | SetResolution
(
const FIntPoint& InResolution |
Sets the resolution of this floating UI panel and resets the window mesh accordingly. | |
| void | SetScale
(
const float NewSize, |
Sets a new size for the UI | |
| void | SetSlateWidget
(
const TSharedRef< SWidget >& InitSlateWidget |
Creates a FVREditorFloatingUI using a Slate widget, and sets up safe defaults | |
| void | SetSlateWidget
(
UVREditorUISystem& InitOwner, |
Creates a FVREditorFloatingUI using a Slate widget, and sets up safe defaults | |
| void | SetUMGWidget
(
UVREditorUISystem& InitOwner, |
Creates a FVREditorFloatingUI using a UMG user widget, and sets up safe defaults | |
| void | Called to finish setting everything up, after a widget has been assigned | ||
| void | SetWidgetComponentScale
(
const FVector& InScale |
Set the widget scale | |
| void | SetWindowMesh
(
UStaticMesh* InWindowMesh |
Set mesh on window mesh component. | |
| void | ShowUI
(
const bool bShow, |
Shows or hides the UI (also enables collision, and performs a transition effect) |
Overridden from AVREditorBaseActor
| Type | Name | Description | |
|---|---|---|---|
| void | SetTransform
(
const FTransform& Transform |
Sets the UI transform | |
| void | TickManually
(
float DeltaTime |
Called by the UI system to tick this UI every frame. |
Overridden from AActor
| Type | Name | Description | |
|---|---|---|---|
| void | Destroyed () |
Called when this actor is explicitly being destroyed during gameplay or in the editor, not called during level streaming or gameplay ending |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
AActor overrides | |
| bool | IsEditorOnly () |
Called during saving to determine if the object is forced to be editor only or not |