Navigation
API > API/Editor > API/Editor/UnrealEd
Inheritance Hierarchy
- FCommonViewportClient
- FViewElementDrawer
- FGCObject
- FEditorViewportClient
- FAnimationViewportClient
- FChaosVDPlaybackViewportClient
- FContextualAnimViewportClient
- FCustomizableObjectEditorViewportClient
- FDatabaseViewportClient
- FDataflowEditorViewportClient
- FLevelEditorViewportClient
- FRetargetPoseViewportClient
- FUVEditor2DViewportClient
- FUVEditor3DViewportClient
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/EditorViewportClient.h |
| Include | #include "EditorViewportClient.h" |
Syntax
class FEditorViewportClient :
public FCommonViewportClient,
public FViewElementDrawer,
public FGCObject
Remarks
Viewport client for editor viewports. Contains common functionality for camera movement, rendering debug information, etc.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AspectRatio | ||
| bool | bAllowCinematicControl | True if this window is allowed to be possessed by cinematic tools for previewing sequences in real-time | |
| bool | bCameraLock | Camera Lock or not | |
| bool | bDisableInput | True if all input is rejected from this viewport | |
| bool | bDraggingByHandle | True if the user is dragging by a widget handle. | |
| bool | bDrawAxes | If true, draw the axis indicators when the viewport is perspective. | |
| bool | bDrawAxesGame | If true, draw the axis indicators when EngineShowFlags.Game is set. | |
| bool | bDrawVertices | If true, draw vertices for selected BSP brushes and static meshes if the large vertices show flag is set. | |
| bool | bForceAudioRealtime | If true, force this viewport to use real time audio regardless of other settings | |
| bool | bForcingUnlitForNewMap | True if we've forced the SHOW_Lighting show flag off because there are no lights in the scene | |
| bool | bHasAudioFocus | If true, this viewport gets to set audio parameters (e.g. set the listener) | |
| bool | bHasMouseMovedSinceClick | If true, the canvas has been been moved using bMoveCanvas Mode | |
| bool | bIsCameraMoving | Is the camera moving? | |
| bool | bIsCameraMovingOnTick | Is the camera moving at the beginning of the tick? | |
| bool | bIsRealtime | If the viewport is currently realtime | |
| bool | bIsSimulateInEditorViewport | True if this level viewport can be used to view Simulate in Editor sessions | |
| bool | bIsTracking | True when within a FMouseDeltaTracker::StartTracking/EndTracking block. | |
| bool | bLockFlightCamera | Flag to lock the viewport fly camera | |
| bool | bNeedsInvalidateHitProxy | If, following the next redraw, we should invalidate hit proxies on the viewport | |
| bool | bNeedsLinkedRedraw | ||
| bool | bNeedsRedraw | The number of pending viewport redraws. | |
| bool | bSetListenerPosition | If true, the listener position will be set | |
| bool | bShouldApplyViewModifiers | Whether view modifiers should be called and applied. | |
| bool | bShouldCheckHitProxy | True when we are in a state where we can check the hit proxy for hovering. | |
| bool | bShowStats | True if we should draw stats over the viewport | |
| bool | bShowWidget | Whether the widget should be drawn. | |
| bool | bUseControllingActorViewInfo | ||
| bool | bUseNumpadCameraControl | If true, numpad keys will be used to move camera in perspective viewport | |
| bool | bUserIsControllingAtmosphericLight0 | True is the use is controling the light via a shorcut | |
| bool | bUserIsControllingAtmosphericLight1 | ||
| bool | bUsesDrawHelper | True if this viewport uses a draw helper | |
| bool | bUsingOrbitCamera | True if the orbit camera is currently being used | |
| bool | bWidgetAxisControlledByDrag | True if the widget's axis is being controlled by an active mouse drag. | |
| int32 | CachedLastMouseX | Represents the last mouse position. | |
| int32 | CachedLastMouseY | ||
| uint32 | CachedMouseX | Represents the last known mouse position. | |
| uint32 | CachedMouseY | ||
| FEditorCameraController * | CameraController | Camera controller object that's used for piloting the camera around | |
| float | CameraSpeedScalar | Camera speed scalar | |
| int32 | CameraSpeedSetting | Camera speed setting | |
| FCameraControllerUserImpulseData * | CameraUserImpulseData | Current cached impulse state | |
| TOptional< EAspectRatioAxisConstraint > | ControllingActorAspectRatioAxisConstraint | ||
| TArray< FPostProcessSettings > | ControllingActorExtraPostProcessBlends | ||
| TArray< float > | ControllingActorExtraPostProcessBlendWeights | ||
| FMinimalViewInfo | ControllingActorViewInfo | ||
| FName | CurrentBufferVisualizationMode | ||
| FVector | CurrentGestureDragDelta | Cumulative camera drag and rotation deltas from trackpad gesture in current Tick | |
| FRotator | CurrentGestureRotDelta | ||
| FName | CurrentGPUSkinCacheVisualizationMode | ||
| FName | CurrentGroomVisualizationMode | ||
| FName | CurrentLumenVisualizationMode | ||
| FIntPoint | CurrentMousePos | -1, -1 if not set | |
| FName | CurrentNaniteVisualizationMode | ||
| FName | CurrentRayTracingDebugVisualizationMode | ||
| FName | CurrentStrataVisualizationMode | ||
| FName | CurrentVirtualShadowMapVisualizationMode | ||
| FVector | DefaultOrbitLocation | ||
| FVector | DefaultOrbitLookAt | ||
| FRotator | DefaultOrbitRotation | Default set up for toggling back | |
| FVector | DefaultOrbitZoom | ||
| FEditorCommonDrawHelper | DrawHelper | Draw helper for rendering common editor functionality like the grid | |
| TWeakPtr< SEditorViewport > | EditorViewportWidget | The editor viewport widget this client is attached to | |
| TArray< FString > | EnabledStats | A list of all the stat names which are enabled for this viewport | |
| FEngineShowFlags | EngineShowFlags | A set of flags that determines visibility for various scene elements. | |
| FExposureSettings | ExposureSettings | Editor setting to allow designers to override the automatic expose | |
| float | FlightCameraSpeedScale | Extra camera speed scale for flight camera | |
| float | FOVAngle | Viewport's stored horizontal field of view (saved in ini files). | |
| int32 | FramesSinceLastDraw | The number of frames since this viewport was last drawn. | |
| float | GestureMoveForwardBackwardImpulse | ||
| FViewportStateGetter | ImmersiveDelegate | Delegate used to get whether or not this client is in an immersive viewport | |
| TMap< int32, FCachedJoystickState * > | JoystickStateMap | Cached state of joystick axes and buttons | |
| int8 | LandscapeLODOverride | Override the LOD of landscape in this viewport. | |
| FEngineShowFlags | LastEngineShowFlags | Previous value for engine show flags, used for toggling. | |
| uint32 | LastMouseX | Updated on each mouse drag start | |
| uint32 | LastMouseY | ||
| TSharedPtr< FEditorModeTools > | ModeTools | Editor mode tools provided to this instance. | |
| FMouseDeltaTracker * | MouseDeltaTracker | ||
| FVector2D | MovingPreviewLightSavedScreenPos | Used for the display of the current preview light after it has been adjusted. | |
| float | MovingPreviewLightTimer | ||
| TUniqueFunction< void(FEngineShowFlags &)> | OverrideShowFlagsFunc | Custom override function that will be called every Draw() until override is disabled | |
| FPreviewScene * | PreviewScene | The scene used for the viewport. Owned externally | |
| TArray< FRealtimeOverride > | RealtimeOverrides | ||
| uint64 | RealTimeUntilFrameNumber | Overrides bIsRealtime until GFrameCounter is >= this number. | |
| FRequiredCursorState | RequiredCursorVisibiltyAndAppearance | Cursor visibility and appearance information | |
| FStatHitchesData | StatHitchesData | Data needed to display per-frame stat tracking when STAT HITCHES is enabled | |
| FStatUnitData | StatUnitData | Data needed to display per-frame stat tracking when STAT UNIT is enabled | |
| TArray< FSceneViewStateReference > | StereoViewStates | Viewport view state when stereo rendering is enabled | |
| double | TimeForForceRedraw | When we have LOD locking, it's slow to force redraw of other viewports, so we delay invalidates to reduce the number of redraws | |
| FTransform | UserControlledAtmosphericLightMatrix | ||
| float | UserIsControllingAtmosphericLightTimer | ||
| float | ViewFOV | Viewport's current horizontal field of view (can be modified by locked cameras etc.) | |
| int32 | ViewIndex | Index of this view in the editor's list of views | |
| FEditorViewportViewModifierDelegate | ViewModifiers | List of view modifiers to apply on view parameters. | |
| FViewport * | Viewport | ||
| TObjectPtr< UTypedElementViewportInteraction > | ViewportInteraction | The viewport interaction instance for this viewport | |
| ELevelViewportType | ViewportType | The viewport type. | |
| FSceneViewStateReference | ViewState | The viewport's scene view state. | |
| FViewportCameraTransform | ViewTransformOrthographic | Viewport camera transform data for orthographic viewports | |
| FViewportCameraTransform | ViewTransformPerspective | Viewport camera transform data for perspective viewports | |
| FViewportStateGetter | VisibilityDelegate | Delegate used to get the visibility of this client from a slate viewport layout and tab configuration | |
| FWidget * | Widget |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEditorViewportClient
(
const FEditorViewportClient& |
Non-copyable | ||
FEditorViewportClient
(
FEditorModeTools* InModeTools, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Aborts mouse tracking (stop and cancel) | ||
| void | AddRealtimeOverride
(
bool bShouldBeRealtime, |
Overrides the realtime state of this viewport until RemoveViewportsRealtimeOverride is called. | |
| void | AdjustTransformWidgetSize
(
const int32 SizeDelta |
Adjusts the current transform widget size by the provided delta value | |
| bool | Returns true if the viewport is allowed to be possessed for previewing cinematic sequences or keyframe animations | ||
| void | ApplyDeltaToRotateWidget
(
const FRotator& InRot |
Updates the rotate widget with the passed in delta rotation. | |
| void | ApplyRequiredCursorVisibility
(
bool bUpdateSoftwareCursorPostion |
Apply the required cursor visibility states from the RequiredCursorVisibiltyAndAppearance struct | |
| FSceneView * | CalcSceneView
(
FSceneViewFamily* ViewFamily, |
Configures the specified FSceneView object with the view and projection matrices for this viewport. | |
| bool | CalculateEditorConstrainedViewRect
(
FSlateRect& OutSafeFrameRect, |
Helper function to calculate the safe frame rectangle on the current viewport | |
| FMatrix | CalcViewRotationMatrix
(
const FRotator& InViewRotation |
Computes a matrix to use for viewport location and rotation | |
| bool | Whether or not the widget mode can be cycled | ||
| FDropQuery | CanDropObjectsAtCoordinates
(
int32 MouseX, |
Checks the viewport to see if the given object can be dropped using the given mouse coordinates local to this viewport | |
| bool | CanSetWidgetMode
(
UE::Widget::EWidgetMode NewMode |
Whether or not the new widget mode can be set in this viewport | |
| bool | |||
| void | CenterViewportAtPoint
(
const FVector& NewLookAt, |
Translates the viewport so that the given LookAt point is at the center of viewport, while maintaining current Location/LookAt distance | |
| void | ChangeBufferVisualizationMode
(
FName InName |
Changes the buffer visualization mode for this viewport. | |
| void | ChangeGPUSkinCacheVisualizationMode
(
FName InName |
Changes the GPU Skin Cache visualization mode for this viewport | |
| void | ChangeGroomVisualizationMode
(
FName InName |
Changes the Groom visualization mode for this viewport. | |
| void | ChangeLumenVisualizationMode
(
FName InName |
Changes the Lumen visualization mode for this viewport. | |
| void | ChangeNaniteVisualizationMode
(
FName InName |
Changes the Nanite visualization mode for this viewport. | |
| void | ChangeRayTracingDebugVisualizationMode
(
FName InName |
Changes the ray tracing debug visualization mode for this viewport | |
| void | ChangeStrataVisualizationMode
(
FName InName |
Changes the Strata visualization mode for this viewport. | |
| void | ChangeVirtualShadowMapVisualizationMode
(
FName InName |
Changes the virtual shadow map visualization mode for this viewport. | |
| void | CheckHoveredHitProxy
(
HHitProxy* HoveredHitProxy |
Called when the mouse cursor is hovered over a hit proxy | |
| void | |||
| void | ConvertMovementToDragRot
(
const FVector& InDelta, |
Converts a generic movement delta into drag/rotation deltas based on the viewport and keys held down. | |
| void | ConvertMovementToOrbitDragRot
(
const FVector& InDelta, |
||
| void | If dragging an actor for placement, this function destroys the actor. | ||
| void | Disable EngineShowFlags override if enabled | ||
| void | DrawActorScreenSpaceBoundingBox
(
FCanvas* InCanvas, |
Draws a screen space bounding box around the specified actor | |
| void | DrawAxes
(
FViewport* Viewport, |
Draws viewport axes | |
| void | DrawBoundingBox
(
FBox& Box, |
||
| void | DrawCanvas
(
FViewport& InViewport, |
Called to draw onto the viewports 2D canvas | |
| void | DrawPreviewLightVisualization
(
const FSceneView* View, |
Draws a visualization of the preview light if it was recently moved. | |
| void | DrawScaleUnits
(
FViewport* Viewport, |
Draws viewport scale units | |
| bool | DropObjectsAtCoordinates
(
int32 MouseX, |
Attempts to intelligently drop the given objects in the viewport, using the given mouse coordinates local to this viewport | |
| void | EnableCameraLock
(
bool bEnable |
Enables or disables camera lock | |
| void | EnableOverrideEngineShowFlags
(
TUniqueFunction< void(FEngineShowFlags&)> OverrideFunc |
Enable customization of the EngineShowFlags for rendering. | |
| void | FocusViewportOnBox
(
const FBox& BoundingBox, |
Focuses the viewport to the center of the bounding box ensuring that the entire box is in view | |
| bool | GetActiveSafeFrame
(
float& OutAspectRatio |
Helper used by DrawSafeFrames to get the current safe frame aspect ratio. | |
| FLinearColor | |||
| uint32 | |||
| uint32 | |||
| FEditorCameraController * | |||
| float | Get the camera speed for this viewport | ||
| float | GetCameraSpeed
(
int32 SpeedSetting |
Get the camera speed for this viewport based on the specified speed setting | |
| float | Get the camera speed scalar for this viewport | ||
| int32 | Get the camera speed setting for this viewport | ||
| FText | Returns the FText display name associated with CurrentBufferVisualizationMode. | ||
| FText | Returns the FText display name associated with CurrentGPUSkinCacheVisualizationMode. | ||
| FText | Returns the FText display name associated with CurrentGroomVisualizationMode. | ||
| FText | Returns the FText display name associated with CurrentLumenVisualizationMode. | ||
| FText | Returns the FText display name associated with CurrentNaniteVisualizationMode. | ||
| FText | Returns the FText display name associated with CurrentStrataVisualizationMode. | ||
| FText | Returns the FText display name associated with CurrentVirtualShadowMapVisualizationMode. | ||
| EAxisList::Type | |||
| FViewportCursorLocation | Gets the world space cursor info from the current mouse position | ||
| TSharedPtr< ICustomTemporalUpscalerData > | |||
| float | |||
| TSharedPtr< SEditorViewport > | Get the editor viewport widget | ||
| float | Get the far clipping plane override for this viewport. | ||
| FVector | GetHitProxyObjectLocation
(
int32 X, |
Returns the location of the object at the given viewport X,Y | |
| bool | |||
| FCachedJoystickState * | GetJoystickState
(
const uint32 InControllerID |
Gets a joystick state cache for the specified controller ID | |
| FMatrix | |||
| const FVector & | |||
| FEditorModeTools * | GetModeTools () |
Editor mode tool manager being used for this viewport client | |
| FMouseDeltaTracker * | Mouse info is usually transformed to gizmo space before FEdMode handles it, this allows raw delta X and Y access | ||
| float | Get the near clipping plane for this viewport. | ||
| float | GetOrthoUnitsPerPixel
(
const FViewport* Viewport |
||
| EViewModeIndex | |||
| float | GetOrthoZoom () |
||
| EViewModeIndex | |||
| bool | GetPivotForOrbit
(
FVector& OutPivot |
Get the custom pivot point around which the camera should orbit for this viewport | |
| FPreviewScene * | Retrieves the FPreviewScene used by this instance of FEditorViewportClient. | ||
| int32 | |||
| FText | |||
| FSceneInterface * | GetScene () |
||
| float | GetSceneDepthAtLocation
(
int32 X, |
Returns the scene depth at the given viewport X,Y | |
| const FVector & | |||
| EViewModeIndex | GetViewMode () |
||
| TMap< int32, FName > & | Returns the map allowing to convert from the viewmode param to a name. | ||
| void | GetViewportDimensions
(
FIntPoint& OutOrigin, |
Gets the dimensions of the viewport | |
| ELevelViewportType | Returns the effective viewport type (taking into account any actor locking or camera possession) | ||
| const FRotator & | |||
| EViewStatusForScreenPercentage | |||
| const FViewportCameraTransform & | |||
| FViewportCameraTransform & | Gets ViewportCameraTransform object for the current viewport type | ||
| FMatrix | |||
| ECoordSystem | |||
| FVector | |||
| UE::Widget::EWidgetMode | |||
| bool | HandleIsShowFlagEnabled
(
FEngineShowFlags::EShowFlag EngineShowFlagIndex |
Delegate handler fired to determine the state of a show flag | |
| void | HandleToggleShowFlag
(
FEngineShowFlags::EShowFlag EngineShowFlagIndex |
Delegate handler fired when a show flag is toggled | |
| bool | Returns true if a placement dragging actor exists | ||
| bool | HasRealtimeOverride
(
FText SystemDisplayName |
Returns whether there's a realtime override registered with the given system name. | |
| void | InputAxisForOrbit
(
FViewport* Viewport, |
||
| bool | InputTakeScreenshot
(
FViewport* Viewport, |
Implements screenshot capture for editor viewports. | |
| bool | InputWidgetDelta
(
FViewport* InViewport, |
Called to give the viewport client a chance to handle widgets being moved | |
| bool | Internal_InputAxis
(
FViewport* Viewport, |
||
| bool | Internal_InputKey
(
const FInputKeyEventArgs& EventArgs |
||
| void | Invalidate
(
bool bInvalidateChildViews, |
Invalidates this viewport and optionally child views. | |
| void | Invalidates the viewport widget (if valid) to register its active timer | ||
| bool | IsActiveViewportType
(
ELevelViewportType InViewportType |
||
| bool | |||
| bool | IsAltPressed () |
Utility functions to return the modifier key states. | |
| bool | Is the aspect ratio currently constrained? | ||
| bool | IsBufferVisualizationModeSelected
(
FName InName |
Checks if a buffer visualization mode is selected. | |
| bool | Callback for checking the camera lock flag. | ||
| bool | IsCmdPressed () |
||
| bool | IsCommandChordPressed
(
const TSharedPtr< FUICommandInfo > InCommand, |
Utility function to return whether the command accepts the key states | |
| bool | |||
| bool | |||
| bool | Returns whether or not the flight camera is active | ||
| bool | |||
| bool | IsGPUSkinCacheVisualizationModeSelected
(
FName InName |
Checks if a GPU Skin Cache visualization mode is selected | |
| bool | IsGroomVisualizationModeSelected
(
FName InName |
Checks if a Groom visualization mode is selected. | |
| bool | |||
| bool | If true, this is a level editor viewport | ||
| bool | |||
| bool | IsLumenVisualizationModeSelected
(
FName InName |
Checks if a Lumen visualization mode is selected. | |
| bool | |||
| bool | IsNaniteVisualizationModeSelected
(
FName InName |
Checks if a Nanite visualization mode is selected. | |
| bool | Returns true if this viewport is perspective. | ||
| bool | |||
| bool | IsPrioritizedInputChordPressed
(
const FName InInputCordName |
||
| bool | IsRayTracingDebugVisualizationModeSelected
(
FName InName |
Checks if a ray tracing debug visualization mode is selected | |
| bool | IsRealtime () |
||
| bool | |||
| bool | Callback for checking the bounds show flag. | ||
| bool | Callback for checking the collision geometry show flag. | ||
| bool | Callback for checking the grid show flag. | ||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | IsStrataVisualizationModeSelected
(
FName InName |
Checks if a Strata visualization mode is selected. | |
| bool | IsTracking () |
||
| bool | IsUsingAbsoluteTranslation
(
bool bAlsoCheckAbsoluteRotation |
Determines whether this viewport is currently allowed to use Absolute Movement | |
| bool | IsViewModeEnabled
(
EViewModeIndex InViewModeIndex |
||
| bool | IsViewModeParam
(
int32 InViewModeParam |
||
| bool | IsVirtualShadowMapVisualizationModeSelected
(
FName InName |
Checks if a virtual shadow map visualization mode is selected. | |
| bool | IsVisible () |
True if the window is maximized or floating | |
| bool | Returns whether visualize debug material is enabled. | ||
| TSharedPtr< FDragTool > | MakeDragTool
(
EDragTool::Type DragToolType |
Called to make a drag tool when the user starts dragging in the viewport | |
| void | Forces a cursor update and marks the window as a move has occurred | ||
| void | MoveViewportCamera
(
const FVector& InDrag, |
Moves the viewport Scamera according to the specified drag and rotation. | |
| void | NudgeSelectedObjects
(
const FInputEventState& InputState |
||
| void | OnChangeCameraSpeed
(
const FInputEventState& InputState |
Called when a user changes the camera speed | |
| void | OnDollyPerspectiveCamera
(
const FInputEventState& InputState |
Called when a user dollys the perspective camera | |
| void | OnEditorModeIDChanged
(
const FEditorModeID& EditorModeID, |
Called when an editor mode has been (de)activated | |
| void | OnOrthoZoom
(
const FInputEventState& InputState, |
Called when a user zooms the ortho viewport | |
| void | OpenScreenshot
(
FString SourceFilePath |
Opens the screenshot in the uses default bitmap viewer (determined by OS) | |
| void | OverrideFarClipPlane
(
const float InFarPlane |
Override the far clipping plane. Set to a negative value to disable the override. | |
| void | OverrideNearClipPlane
(
float InNearPlane |
Override the near clipping plane. Set to a negative value to disable the override. | |
| void | OverridePostProcessSettings
(
FSceneView& View |
Called to override any post process settings for the view | |
| void | PeformDefaultCameraMovement
(
FVector& Drag, |
Perform default camera movement that would normally happen* This can be used by systems to override how the camera is triggered | |
| void | Called when the perspective viewport camera moves | ||
| bool | Removes the last added realtime override. | ||
| void | ProcessClick
(
FSceneView& View, |
Called when the user clicks in the viewport | |
| void | ProcessClickInViewport
(
const FInputEventState& InputState, |
Handles clicking in the viewport | |
| void | ProcessDoubleClickInViewport
(
const FInputEventState& InputState, |
Handles double clicking in the viewport | |
| void | Invalidates this and other linked viewports (anything viewing the same scene) | ||
| void | RegisterPrioritizedInputChord
(
const FPrioritizedInputChord& InInputCord |
Functions for registering and evaluating prioritized input chords. | |
| void | |||
| bool | RemoveRealtimeOverride
(
FText SystemDisplayName, |
Removes the most recent realtime override registered with the given system name. | |
| void | RenderDragTool
(
const FSceneView* View, |
Render the drag tool in the viewport | |
| void | RequestRealTimeFrames
(
uint64 NumRealTimeFrames |
Get the number of real-time frames to draw (overrides bRealtime) | |
| void | Rotate through viewport view options | ||
| void | SaveRealtimeStateToConfig
(
bool& ConfigVar |
Saves the realtime state to a config location. Does not save any temp overrides | |
| void | SetAllowCinematicControl
(
bool bInAllowCinematicControl |
Sets whether or not this viewport is allowed to be possessed by cinematic/scrubbing tools | |
| void | |||
| void | Callback for toggling the camera lock flag. | ||
| void | SetCameraSetup
(
const FVector& LocationForOrbiting, |
This set ups camera for both orbit and non orbit control | |
| void | SetCameraSpeedScalar
(
float SpeedScalar |
Set the camera speed scalar for this viewport | |
| void | SetCameraSpeedSetting
(
int32 SpeedSetting |
Set the speed setting for the camera in this viewport | |
| void | SetCurrentWidgetAxis
(
EAxisList::Type InAxis |
Sets the current axis being manipulated by the transform widget | |
| void | SetCustomTemporalUpscalerData
(
TSharedPtr< ICustomTemporalUpscalerData > InCustomTemporalUpscalerData |
||
| void | SetForcedAudioRealtime
(
bool bShouldForceAudioRealtime |
True to force realtime audio to be true, false to stop forcing it | |
| void | SetGameView
(
bool bGameViewEnable |
||
| void | SetInitialViewTransform
(
ELevelViewportType ViewportType, |
||
| void | SetIsCurrentLevelEditingFocus
(
bool bInIsCurrentLevelEditingFocus |
||
| void | SetLookAtLocation
(
const FVector& LookAt, |
Sets the look at location of the viewports camera for orbit * | |
| void | SetLowDPIPreview
(
bool LowDPIPreview |
Set whether previewing for low DPI. | |
| void | SetOrthoZoom
(
float InOrthoZoom |
Sets ortho zoom amount | |
| void | SetPreviewingScreenPercentage
(
bool bIsPreviewing |
Sets whether preview screen percentage for UI. | |
| void | SetPreviewScreenPercentage
(
int32 PreviewScreenPercentage |
Set preview screen percentage on UI behalf. | |
| void | SetRealtime
(
bool bInRealtime |
Sets whether or not the viewport updates in realtime. | |
| void | SetRequiredCursor
(
const bool bHardwareCursorVisible, |
Sets the required hardware and software cursor. | |
| void | SetRequiredCursorOverride
(
bool WantOverride, |
Overrides current cursor. | |
| void | SetShowAspectRatioBarDisplay
(
bool bEnable |
Aspect ratio bar display settings | |
| void | SetShowBounds
(
bool bShow |
Sets the show bounds flag | |
| void | Callback for toggling the collision geometry show flag. | ||
| void | SetShowGrid () |
Callback for toggling the grid show flag. | |
| void | SetShowSafeFrameBoxDisplay
(
bool bEnable |
||
| void | SetupViewForRendering
(
FSceneViewFamily& ViewFamily, |
Called to do any additional set up of the view for rendering | |
| void | SetViewLocation
(
const FVector& NewLocation |
Sets the location of the viewport's camera | |
| void | SetViewLocationForOrbiting
(
const FVector& LookAtPoint, |
Sets the camera view location such that the LookAtPoint point is at the specified location. | |
| void | SetViewMode
(
EViewModeIndex InViewModeIndex |
Sets how the viewport is displayed (lit, wireframe, etc) for the current viewport type | |
| void | SetViewModeParam
(
int32 InViewModeParam |
Set the viewmode param. | |
| void | SetViewModes
(
const EViewModeIndex InPerspViewModeIndex, |
Sets how the viewport is displayed (lit, wireframe, etc) | |
| void | SetViewportType
(
ELevelViewportType InViewportType |
Set the viewport type of the client | |
| void | SetViewRotation
(
const FRotator& NewRotation |
Sets the location of the viewport's camera | |
| void | SetVREditView
(
bool bGameViewEnable |
||
| void | SetWidgetCoordSystemSpace
(
ECoordSystem NewCoordSystem |
Sets the coordinate system space to use | |
| void | SetWidgetMode
(
UE::Widget::EWidgetMode NewMode |
Sets the current widget mode | |
| void | SetWidgetModeOverride
(
UE::Widget::EWidgetMode InWidgetMode |
Overrides current widget mode | |
| bool | |||
| bool | |||
| bool | |||
| bool | Returns true if status information should be displayed over the viewport | ||
| bool | Determines if the new MoveCanvas movement should be used | ||
| void | ShowWidget
(
const bool bShow |
Show or hide the widget. | |
| void | StartTrackingDueToInput
(
const FInputEventState& InputState, |
Starts tracking the mouse due to mouse input | |
| void | StopTracking () |
Stops any mouse tracking | |
| bool | |||
| bool | |||
| void | |||
| void | TakeScreenshot
(
FViewport* Viewport, |
Takes the screenshot capture, this is called by keybinded events as well InputTakeScreenshot | |
| void | Tick
(
float DeltaSeconds |
Ticks this viewport client | |
| void | ToggleOrbitCamera
(
bool bEnableOrbitCamera |
Toggle between orbit camera and fly camera | |
| bool | Toggles whether or not the viewport updates in realtime and returns the updated state. | ||
| void | Callback for toggling the bounds show flag. | ||
| void | TrackingStarted
(
const FInputEventState& InInputState, |
Called when mouse movement tracking begins | |
| void | Called when mouse movement tracking stops | ||
| FVector | TranslateDelta
(
FKey InKey, |
Determines which axis InKey and InDelta most refer to and returns a corresponding FVector. | |
| FString | UnrealUnitsToSiUnits
(
float UnrealUnits |
Get a prettified string representation of the specified unreal units | |
| void | UnregisterPrioritizedInputChord
(
const FName InInputCordName |
||
| void | Updates the visibility of the hardware and software cursors according to the viewport's state. | ||
| bool | UpdateDropPreviewActors
(
int32 MouseX, |
If dragging an actor for placement, this function updates its position. | |
| void | Called each frame to update the viewport based on delta trackpad gestures | ||
| void | When collision draw mode changes, this function allows hidden objects to be drawn, so hidden colliding objects can be seen | ||
| void | UpdateLinkedOrthoViewports
(
bool bInvalidate |
||
| void | Called each frame to update the viewport based on delta mouse movements | ||
| void | Setup the cursor visibility state we require and store in RequiredCursorVisibiltyAndAppearance struct | ||
| bool | UseAppTime () |
Should this viewport use app time instead of world time. | |
| bool | Normally we disable all viewport rendering when the editor is minimized, but the render commands may need to be processed regardless (like if we were outputting to a monitor via capture card). |
Overridden from FCommonViewportClient
| Type | Name | Description | |
|---|---|---|---|
| float | FCommonViewportClient interface |
Overridden from FViewportClient
| Type | Name | Description | |
|---|---|---|---|
| void | CapturedMouseMove
(
FViewport* InViewport, |
Called when the mouse is moved while a window input capture is in effect | |
| void | |||
| EMouseCursor::Type | Retrieves the cursor that should be displayed by the OS | ||
| const TArray< FString > * | Get a ptr to the enabled stats list | ||
| FStatHitchesData * | Get a ptr to the stat unit data for this viewport | ||
| FStatUnitData * | Get a ptr to the stat unit data for this viewport | ||
| UWorld * | GetWorld () |
Use the viewports Scene to get a world. | |
| bool | InputAxis
(
FViewport* Viewport, |
Check an axis movement received by the viewport. | |
| bool | InputGesture
(
FViewport* Viewport, |
Check a gesture event received by the viewport. | |
| bool | InputKey
(
const FInputKeyEventArgs& EventArgs |
Check a key event received by the viewport. | |
| bool | IsInGameView () |
Returns true if this viewport is excluding non-game elements from its display | |
| bool | IsOrtho () |
Returns true if this viewport is orthogonal. | |
| bool | IsStatEnabled
(
const FString& InName |
Check whether a specific stat is enabled for this viewport | |
| void | |||
| void | MouseEnter
(
FViewport* Viewport, |
||
| void | MouseLeave
(
FViewport* Viewport |
||
| void | |||
| void | ProcessAccumulatedPointerInput
(
FViewport* InViewport |
Called from slate when input is finished for this frame, and we should process any queued mouse moves. | |
| bool | ProcessScreenShots
(
FViewport* Viewport |
FViewportClient interface | |
| void | ReceivedFocus
(
FViewport* Viewport |
||
| void | RedrawRequested
(
FViewport* Viewport |
||
| void | RequestInvalidateHitProxy
(
FViewport* Viewport |
||
| void | SetEnabledStats
(
const TArray< FString >& InEnabledStats |
Sets all the stats that should be enabled for the viewport | |
| void | SetShowStats
(
bool bWantStats |
Sets whether or not stats info is displayed over the viewport |
Overridden from FViewElementDrawer
| Type | Name | Description | |
|---|---|---|---|
| void | Draw
(
const FSceneView* View, |
FViewElementDrawer interface |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
FGCObject interface | |
| FString | Overload this method to report a name for your referencer |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FEditorViewportClient & | operator=
(
const FEditorViewportClient& |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FRealtimeOverride | Temporary realtime overrides and user messages that are not saved between editor sessions. | ||
| FRequiredCursorState | Used to store the required cursor visibility states and override cursor appearance | ||
| ICustomTemporalUpscalerData | Used by the custom temporal upscaler plugin. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ESceneDPIMode | DPI mode for scene rendering. |
Constants
| Name | Description |
|---|---|
| DefaultOrthoViewMode | Default view mode for orthographic viewports |
| DefaultPerspectiveViewMode | Default view mode for perspective viewports |
| MaxCameraSpeeds | The Maximum Mouse/Camera Speeds Setting supported |
| SafePadding | Constant for how much the camera safe zone rectangle is inset when being displayed in the editor |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | This version of InputAxis is deprecated. Please use the version that takes a DeviceId instead. | ||
| bool | This version of InputKey is deprecated. Please use the version that takes FInputKeyEventArgs instead. | ||
| void | RemoveRealtimeOverride now takes a system display name to help remove the correct override. | ||
| void | RestoreRealtime
(
const bool bAllowDisable |
To save and restore realtime state non-permanently use AddRealtimeOverride and RemoveRealtimeOverride | |
| void | SetRealtime
(
bool bInRealtime, |
SetRealtime no longer takes in bStoreCurrentValue parameter. For temporary overrides use AddRealtimeOverride | |
| void | SetRealtimeOverride
(
bool bShouldBeRealtime, |
SetRealtimeOverride is replaced with AddRealtimeOverride, as multiple overrides can now be added. | |
| void | TakeOwnershipOfModeManager
(
TSharedPtr< FEditorModeTools >& ModeManagerPtr |
This function is meant for legacy edge cases (pre-UAssetEditor), where the toolkit may not be the original owner of the mode manager. |