UViewport

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/Viewport.h

Include

#include "Components/Viewport.h"

Syntax

class UViewport : public UContentWidget

Variables

Name Description

Public variable

FLinearColor

 

BackgroundColor

Protected variable

FEngineShowFlag...

 

ShowFlags

Show flags for the engine for this viewport

Protected variable

TSharedPtr< cla...

 

ViewportWidget

Constructors

Name Description

Public function

UViewport

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

FVector

 

GetViewLocation()

Public function Const

UWorld *

 

GetViewportWorld()

Public function Const

FRotator

 

GetViewRotation()

Public function

void

 

SetViewLocation

(
    FVector Location
)

Public function

void

 

SetViewRotation

(
    FRotator Rotation
)

Public function

AActor *

 

Spawn

(
    TSubclassOf< AActor > ActorClass
)

Overridden from UPanelWidget

Name Description

Protected function Virtual

void

 

OnSlotAdded

(
    UPanelSlot* Slot
)

UPanelWidget.

Protected function Virtual

void

 

OnSlotRemoved

(
    UPanelSlot* Slot
)

Overridden from UWidget

Name Description

Public function Virtual

const FText

 

GetPaletteCategory()

Gets the palette category of the widget

Protected function Virtual

TSharedRef< ...

 

RebuildWidget()

Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.

Public function Virtual

void

 

SynchronizeProperties()

Applies all properties to the native widget if possible.

Overridden from UVisual

Name Description

Public function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss