Navigation
API > API/Editor > API/Editor/UnrealEd
Implements the Level Editor's view port settings.
| Name | ULevelEditorViewportSettings |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Settings/LevelEditorViewportSettings.h |
| Include Path | #include "Settings/LevelEditorViewportSettings.h" |
Syntax
UCLASS (Config=EditorPerProjectUserSettings, MinimalAPI)
class ULevelEditorViewportSettings : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → ULevelEditorViewportSettings
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULevelEditorViewportSettings
(
const FObjectInitializer& ObjectInitializer |
Settings/LevelEditorViewportSettings.h |
Classes
| Name | Remarks |
|---|---|
| FSettingChangedEvent | Returns an event delegate that is executed when a setting has changed. |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActiveSnapLayerIndex | int32 | The index of the snap plane to use when 2D Layer Snapping is enabled, from the array of Snap Layers set for the project. | Settings/LevelEditorViewportSettings.h |
|
| ActorSnapDistance | float | Global actor snap distance setting for the editor | Settings/LevelEditorViewportSettings.h |
|
| ActorSnapScale | float | Global actor snap scale for the editor | Settings/LevelEditorViewportSettings.h |
|
| AspectRatioAxisConstraint | TEnumAsByte< enum EAspectRatioAxisConstraint > | How to constrain perspective view port FOV | Settings/LevelEditorViewportSettings.h |
|
| BackgroundDropDistance | float | Distance from the camera to place actors which are dropped on nothing in the view port. | Settings/LevelEditorViewportSettings.h |
|
| bAllowArcballRotate | uint32 | Allow arcball rotation with rotate widget | Settings/LevelEditorViewportSettings.h |
|
| bAllowEditWidgetAxisDisplay | uint32 | If true, the Edit widget of a transform will display the axis | Settings/LevelEditorViewportSettings.h |
|
| bAllowScreenRotate | uint32 | Allow screen rotation with rotate widget | Settings/LevelEditorViewportSettings.h |
|
| bAllowTranslateRotateZWidget | uint32 | Allow translate/rotate widget | Settings/LevelEditorViewportSettings.h |
|
| bCenterZoomAroundCursor | uint32 | If checked, in orthographic view ports zooming will center on the mouse position. | Settings/LevelEditorViewportSettings.h |
|
| bClickBSPSelectsBrush | uint32 | If true, Clicking a BSP selects the brush and ctrl+shift+click selects the surface. | Settings/LevelEditorViewportSettings.h |
|
| bEnableActorSnap | uint32 | If true actor snap will be enabled in the editor | Settings/LevelEditorViewportSettings.h |
|
| bEnableLayerSnap | uint32 | If enabled, new Actors that you drag into the viewport snap to the active 2D layer. | Settings/LevelEditorViewportSettings.h |
|
| bEnableViewportCameraToUpdateFromPIV | uint32 | Enables the editor perspective camera to be dropped at the last PlayInViewport cam position | Settings/LevelEditorViewportSettings.h |
|
| bEnableViewportHoverFeedback | uint32 | Enables real-time hover feedback when mousing over objects in editor view ports | Settings/LevelEditorViewportSettings.h |
|
| bHighlightWithBrackets | uint32 | If enabled, selected objects will be highlighted with brackets in all modes rather than a special highlight color. | Settings/LevelEditorViewportSettings.h |
|
| BillboardScale | float | Settings/LevelEditorViewportSettings.h |
|
|
| bInvertMiddleMousePan | bool | Whether or not to invert the direction of middle mouse panning in viewports | Settings/LevelEditorViewportSettings.h |
|
| bInvertMouseLookYAxis | bool | Whether or not to invert mouse on the y axis in free look mode | Settings/LevelEditorViewportSettings.h |
|
| bInvertOrbitYAxis | bool | Whether or not to invert mouse on y axis in orbit mode | Settings/LevelEditorViewportSettings.h |
|
| bInvertRightMouseDollyYAxis | bool | Whether or not to invert the direction of right mouse dolly on the Y axis in orbit mode | Settings/LevelEditorViewportSettings.h |
|
| bLevelEditorJoystickControls | bool | Enables joystick-based camera movement in 3D level editing viewports | Settings/LevelEditorViewportSettings.h |
|
| bLevelStreamingVolumePrevis | bool | If enabled, the viewport will stream in levels automatically when the camera is moved. | Settings/LevelEditorViewportSettings.h |
|
| bOrbitCameraAroundSelection | bool | If enabled, the camera will orbit around the current selection in the viewport | Settings/LevelEditorViewportSettings.h |
|
| bPanMovesCanvas | uint32 | If true, moves the canvas and shows the mouse. If false, uses original camera movement. | Settings/LevelEditorViewportSettings.h |
|
| bPreviewSelectedCameras | uint32 | When enabled, selecting a camera actor will display a live 'picture in picture' preview from the camera's perspective within the current editor view port. | Settings/LevelEditorViewportSettings.h |
|
| bSaveEngineStats | uint32 | When enabled, engine stats that are enabled in level viewports are preserved between editor sessions | Settings/LevelEditorViewportSettings.h |
|
| bShowActorEditorContext | uint32 | If true, viewport will show actor editor context (current level, current data layer(s), current folder) | Settings/LevelEditorViewportSettings.h |
|
| bShowBrushMarkerPolys | uint32 | If true, show translucent marker polygons on the builder brush and volumes. | Settings/LevelEditorViewportSettings.h |
|
| bSnapVertices | bool | Settings/LevelEditorViewportSettings.h |
|
|
| BSPSelectionHighlightIntensity | float | Sets the intensity of the overlay displayed when an object is selected | Settings/LevelEditorViewportSettings.h |
|
| bStrictBoxSelection | uint32 | True if viewport box selection requires objects to be fully encompassed by the selection box to be selected | Settings/LevelEditorViewportSettings.h |
|
| bTransparentBoxSelection | uint32 | True if viewport box selection also selects occluded objects, false if only objects with visible pixels are selected | Settings/LevelEditorViewportSettings.h |
|
| bUseAbsoluteTranslation | uint32 | Whether to use mouse position as direct widget position. | Settings/LevelEditorViewportSettings.h |
|
| bUseDistanceScaledCameraSpeed | bool | If enabled, scale the perspective camera speed based on the distance between the camera and its look-at position | Settings/LevelEditorViewportSettings.h |
|
| bUseLegacyCameraMovementNotifications | uint32 | Camera movement notification toggle to switch back to the behavior that caused camera notifications to be sent during gizmo movement. | Settings/LevelEditorViewportSettings.h |
|
| bUseLinkedOrthographicViewports | uint32 | If checked all orthographic view ports are linked to the same position and move together. | Settings/LevelEditorViewportSettings.h |
|
| bUseLODViewLocking | uint32 | BUseLODViewLocking is added to keep around a legacy command from FLevelEditorCommands, as we are removing the Level Editor Settings menu. | Settings/LevelEditorViewportSettings.h |
|
| bUsePowerOf2SnapSize | bool | If enabled will use power of 2 grid settings (e.g, 1,2,4,8,16,...,1024) instead of decimal grid sizes | Settings/LevelEditorViewportSettings.h |
|
| bUseSelectionOutline | uint32 | Whether to show selection outlines for selected Actors | Settings/LevelEditorViewportSettings.h |
|
| bUseUE3OrbitControls | bool | When checked, orbit the camera by using the L or U keys when unchecked, Alt and Left Mouse Drag will orbit around the look at point | Settings/LevelEditorViewportSettings.h |
|
| bWorldSpaceVerticalPan | bool | If enabled, vertical movements of the mouse while panning with the middle mouse button will move the camera vertically in world space. | Settings/LevelEditorViewportSettings.h |
|
| CameraPreviewSize | float | Affects the size of 'picture in picture' previews if they are enabled | Settings/LevelEditorViewportSettings.h |
|
| CameraSpeedSettings | FEditorViewportCameraSpeedSettings | The camera speed settings for level viewports. | Settings/LevelEditorViewportSettings.h |
|
| CommonRotGridSizes | TArray< float > | User defined grid intervals for rotations | Settings/LevelEditorViewportSettings.h |
|
| CurrentPosGridSize | int32 | Settings/LevelEditorViewportSettings.h |
|
|
| CurrentRotGridMode | TEnumAsByte< ERotationGridMode > | Controls which array of rotation grid values we are using | Settings/LevelEditorViewportSettings.h |
|
| CurrentRotGridSize | int32 | Settings/LevelEditorViewportSettings.h |
|
|
| CurrentScalingGridSize | int32 | Settings/LevelEditorViewportSettings.h |
|
|
| DecimalGridIntervals | TArray< float > | The number of lines between each major line interval for decimal grids | Settings/LevelEditorViewportSettings.h |
|
| DecimalGridSizes | TArray< float > | Decimal grid sizes (for translation snapping and grid rendering) | Settings/LevelEditorViewportSettings.h |
|
| DivisionsOf360RotGridSizes | TArray< float > | Preset grid intervals for rotations | Settings/LevelEditorViewportSettings.h |
|
| EditorViews | TMap< TSoftObjectPtr< UWorld >, FLevelEditorViewporEditorViews > | Store the last camera settings for all the viewport of each world loaded in the editor. | Settings/LevelEditorViewportSettings.h |
|
| FlightCameraControlExperimentalNavigation | bool | Enable the use of the experimental navigation in the flight camera controls. | Settings/LevelEditorViewportSettings.h |
|
| FlightCameraControlType | TEnumAsByte< EWASDType > | Enable the use of flight camera controls under various circumstances. | Settings/LevelEditorViewportSettings.h |
|
| FoliageEditorControlType | ELandscapeFoliageEditorControlType | Choose the control scheme for foliage tools | Settings/LevelEditorViewportSettings.h |
|
| GridEnabled | uint32 | If enabled, actor positions will snap to the grid. | Settings/LevelEditorViewportSettings.h |
|
| LandscapeEditorControlType | ELandscapeFoliageEditorControlType | Choose the control scheme for landscape tools (ignored for pen input) | Settings/LevelEditorViewportSettings.h |
|
| LastInViewportMenuLocation | FVector2D | Settings/LevelEditorViewportSettings.h |
|
|
| MarqueeSelectionMode | EMarqueeSelectionMode | Sets how marquee selection should behave. | Settings/LevelEditorViewportSettings.h |
|
| MaterialForDroppedTextures | TSoftObjectPtr< class UMaterialInterface > | When dropping a texture in the viewport, create an instance of this material instead of creating a new material. | Settings/LevelEditorViewportSettings.h |
|
| MaterialParamsForDroppedTextures | TMap< EMaterialKind, FName > | When dropping a texture in the viewport, determines which material parameter to assign for each found texture type. | Settings/LevelEditorViewportSettings.h |
|
| MeasuringToolUnits | TEnumAsByte< EMeasuringToolUnits > | Specify the units used by the measuring tool | Settings/LevelEditorViewportSettings.h |
|
| MinimumOrthographicZoom | float | The closest possible distance allowed when viewing through an orthographic camera | Settings/LevelEditorViewportSettings.h |
|
| MouseScrollCameraSpeed | int32 | How fast the perspective camera moves through the world when using mouse scroll. | Settings/LevelEditorViewportSettings.h |
|
| MouseSensitivty | float | The sensitivity of mouse movement when rotating the camera. | Settings/LevelEditorViewportSettings.h |
|
| Pow2GridIntervals | TArray< float > | The number of lines between each major line interval for pow2 grids | Settings/LevelEditorViewportSettings.h |
|
| Pow2GridSizes | TArray< float > | Power of 2 grid sizes (for translation snapping and grid rendering) | Settings/LevelEditorViewportSettings.h |
|
| PreserveNonUniformScale | bool | Settings/LevelEditorViewportSettings.h |
|
|
| PreviewMeshes | TArray< FSoftObjectPath > | A list of meshes that can be used as preview mesh in the editor view port by holding down the backslash key | Settings/LevelEditorViewportSettings.h |
|
| PropertyColorationColorForMatchingObjects | FColor | Property coloration color for matching objects | Settings/LevelEditorViewportSettings.h |
|
| RotGridEnabled | uint32 | If enabled, actor rotations will snap to the grid. | Settings/LevelEditorViewportSettings.h |
|
| ScalingGridSizes | TArray< float > | Grid sizes for scaling | Settings/LevelEditorViewportSettings.h |
|
| ScrollGestureDirectionFor3DViewports | EScrollGestureDirection | Direction of the scroll gesture for 3D viewports | Settings/LevelEditorViewportSettings.h |
|
| ScrollGestureDirectionForOrthoViewports | EScrollGestureDirection | Direction of the scroll gesture for orthographic viewports | Settings/LevelEditorViewportSettings.h |
|
| SelectedSplinePointSizeAdjustment | float | The size adjustment to apply to selected spline points (in screen space units). | Settings/LevelEditorViewportSettings.h |
|
| SelectionHighlightIntensity | float | Sets the intensity of the overlay displayed when an object is selected | Settings/LevelEditorViewportSettings.h |
|
| SnapDistance | float | Settings/LevelEditorViewportSettings.h |
|
|
| SnapScaleEnabled | uint32 | If enabled, actor sizes will snap to the grid. | Settings/LevelEditorViewportSettings.h |
|
| SnapToSurface | FSnapToSurfaceSettings | If enabled, actors will snap to surfaces in the viewport when dragged around | Settings/LevelEditorViewportSettings.h |
|
| SplineLineThicknessAdjustment | float | The size adjustment to apply to spline line thickness which increases the spline's hit tolerance. | Settings/LevelEditorViewportSettings.h |
|
| SplineTangentHandleSizeAdjustment | float | The size adjustment to apply to spline tangent handle (in screen space units). | Settings/LevelEditorViewportSettings.h |
|
| SplineTangentScale | float | The scale to apply to spline tangent lengths | Settings/LevelEditorViewportSettings.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bUsePercentageBasedScaling | uint32 | If enabled, use the old-style multiplicative/percentage scaling method instead of the new additive/fraction method | Settings/LevelEditorViewportSettings.h |
|
| PerInstanceSettings | TArray< FLevelEditorViewportInstanceSettingsKeyValuePair > | Per-instance viewport settings. | Settings/LevelEditorViewportSettings.h |
|
| SettingChangedEvent | FSettingChangedEvent | Holds an event delegate that is executed when a setting has changed. | Settings/LevelEditorViewportSettings.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FLevelEditorViewportInstanceSettings * GetViewportInstanceSettings
(
const FString& InConfigName |
Settings/LevelEditorViewportSettings.h | ||
FSettingChangedEvent & OnSettingChanged() |
Settings/LevelEditorViewportSettings.h | ||
void SetViewportInstanceSettings
(
const FString& InConfigName, |
Set the instance settings for the given viewport | Settings/LevelEditorViewportSettings.h | |
bool UsePercentageBasedScaling() |
Checks whether percentage based scaling should be used for view ports. | Settings/LevelEditorViewportSettings.h |
Protected
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Settings/LevelEditorViewportSettings.h | ||
virtual void PostInitProperties() |
Settings/LevelEditorViewportSettings.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CameraSpeed_DEPRECATED | int32 | How fast the perspective camera moves when flying through the world. | Settings/LevelEditorViewportSettings.h |
|
| CameraSpeedScalar_DEPRECATED | float | Scalar applied to perspective camera movement to increase movement range. | Settings/LevelEditorViewportSettings.h |
|
| TransformWidgetSizeAdjustment_DEPRECATED | int32 | The size adjustment to apply to the translate/rotate/scale widgets (in Unreal units). | Settings/LevelEditorViewportSettings.h |
|