Navigation
API > API/Runtime > API/Runtime/UMG
| Name | UViewport |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/Viewport.h |
| Include Path | #include "Components/Viewport.h" |
Syntax
UCLASS (Experimental, MinimalAPI)
class UViewport : public UContentWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UPanelWidget → UContentWidget → UViewport
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UViewport
(
const FObjectInitializer& ObjectInitializer |
Components/Viewport.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BackgroundColor | FLinearColor | Components/Viewport.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FLinearColor & GetBackgroundColor() |
Components/Viewport.h | ||
FVector GetViewLocation() |
Components/Viewport.h |
|
|
UWorld * GetViewportWorld() |
Components/Viewport.h |
|
|
FMatrix GetViewProjectionMatrix() |
Components/Viewport.h |
|
|
FRotator GetViewRotation() |
Components/Viewport.h |
|
|
void SetBackgroundColor
(
const FLinearColor& InColor |
Components/Viewport.h | ||
void SetEnableAdvancedFeatures
(
bool InEnableAdvancedFeatures |
Components/Viewport.h |
|
|
void SetLightIntensity
(
float LightIntensity |
Components/Viewport.h |
|
|
void SetShowFlag
(
FString InShowFlagName, |
Components/Viewport.h |
|
|
void SetSkyIntensity
(
float LightIntensity |
Components/Viewport.h |
|
|
void SetViewLocation
(
FVector Location |
Components/Viewport.h |
|
|
void SetViewRotation
(
FRotator Rotation |
Components/Viewport.h |
|
|
AActor * Spawn
(
TSubclassOf< AActor > ActorClass |
Components/Viewport.h |
|
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Gets the palette category of the widget | Components/Viewport.h | |
virtual void SynchronizeProperties () |
Applies all properties to the native widget if possible. | Components/Viewport.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/Viewport.h |
Protected
Overridden from UPanelWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnSlotAdded
(
UPanelSlot* Slot |
UPanelWidget. | Components/Viewport.h | |
virtual void OnSlotRemoved
(
UPanelSlot* Slot |
Components/Viewport.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | Components/Viewport.h |