Navigation
API > API/Editor > API/Editor/UnrealEd
Implements the Editor's play settings.
| Name | ULevelEditorPlaySettings |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Settings/LevelEditorPlaySettings.h |
| Include Path | #include "Settings/LevelEditorPlaySettings.h" |
Syntax
UCLASS (Config=EditorPerProjectUserSettings, MinimalAPI)
class ULevelEditorPlaySettings : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → ULevelEditorPlaySettings
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULevelEditorPlaySettings
(
const FObjectInitializer& ObjectInitializer |
Settings/LevelEditorPlaySettings.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AdditionalLaunchParameters | FString | Extra parameters to be include as part of the command line for the standalone game. | Settings/LevelEditorPlaySettings.h |
|
| AdditionalServerLaunchParameters | FString | Additional options that will be passed to the server as arguments, for example -debug. | Settings/LevelEditorPlaySettings.h |
|
| AutoRecompileBlueprints | bool | Whether to automatically recompile blueprints on PIE | Settings/LevelEditorPlaySettings.h |
|
| bAutoCompileBlueprintsOnLaunch | bool | Whether to automatically recompile dirty Blueprints before launching | Settings/LevelEditorPlaySettings.h |
|
| bEmulateStereo | bool | Whether we should emulate stereo (helps checking VR rendering issues). | Settings/LevelEditorPlaySettings.h |
|
| bLaunchSeparateServer | bool | This is a rarely used option that will launch a separate server (possibly hidden in-process depending on RunUnderOneProcess) even if the net mode does not require a server (such as Standalone). | Settings/LevelEditorPlaySettings.h |
|
| bOnlyLoadVisibleLevelsInPIE | uint32 | True if Play In Editor should only load currently-visible levels in PIE. | Settings/LevelEditorPlaySettings.h |
|
| bPreferToStreamLevelsInPIE | uint32 | Settings/LevelEditorPlaySettings.h |
|
|
| bPromoteOutputLogWarningsDuringPIE | bool | Should warnings and errors in the Output Log during "Play in Editor" be promoted to the message log? | Settings/LevelEditorPlaySettings.h |
|
| bShouldMinimizeEditorOnNonVRPIE | bool | Should we minimize the editor when non-VR PIE is clicked (default = false) | Settings/LevelEditorPlaySettings.h |
|
| BuildGameBeforeLaunch | TEnumAsByte< EPlayOnBuildMode > | Whether to build the game before launching on device. | Settings/LevelEditorPlaySettings.h |
|
| bUseNonRealtimeAudioDevice | bool | Whether to use a non-realtime audio device during PIE | Settings/LevelEditorPlaySettings.h |
|
| CenterNewWindow | uint32 | Whether the new window should be centered on the screen. | Settings/LevelEditorPlaySettings.h |
|
| ClientFixedFPS | TArray< int32 > | If > 0, Tick clients at a fixed frame rate. | Settings/LevelEditorPlaySettings.h |
|
| CustomUnsafeZoneDimensions | TArray< FVector2D > | Settings/LevelEditorPlaySettings.h |
|
|
| CustomUnsafeZoneStarts | TArray< FVector2D > | Settings/LevelEditorPlaySettings.h |
|
|
| DeviceToEmulate | FString | Settings/LevelEditorPlaySettings.h |
|
|
| DisableStandaloneSound | uint32 | Whether sound should be disabled when playing standalone games. | Settings/LevelEditorPlaySettings.h |
|
| EnableGameSound | bool | Whether to play sounds during PIE | Settings/LevelEditorPlaySettings.h |
|
| EnablePIEEnterAndExitSounds | bool | Whether to play a sound when entering and exiting PIE | Settings/LevelEditorPlaySettings.h |
|
| GameGetsMouseControl | bool | Should Play-in-Editor automatically give mouse control to the game on PIE start (default = false). | Settings/LevelEditorPlaySettings.h |
|
| LaptopScreenResolutions | TArray< FPlayScreenResolution > | Collection of common screen resolutions on mobile phones. | Settings/LevelEditorPlaySettings.h |
|
| LastExecutedLaunchDevice | FString | The name of the last platform that the user ran a play session on. | Settings/LevelEditorPlaySettings.h |
|
| LastExecutedLaunchModeType | TEnumAsByte< ELaunchModeType > | The last type of play-on session the user ran. | Settings/LevelEditorPlaySettings.h |
|
| LastExecutedLaunchName | FString | The name of the last device that the user ran a play session on. | Settings/LevelEditorPlaySettings.h |
|
| LastExecutedPIEPreviewDevice | FString | The name of the last device that the user ran a play session on. | Settings/LevelEditorPlaySettings.h |
|
| LastExecutedPlayModeLocation | TEnumAsByte< EPlayModeLocations > | The last type of play location the user ran. | Settings/LevelEditorPlaySettings.h |
|
| LastExecutedPlayModeType | TEnumAsByte< EPlayModeType > | The last type of play session the user ran. | Settings/LevelEditorPlaySettings.h |
|
| LastSize | FIntPoint | The last known screen size for the first instance window (in pixels). | Settings/LevelEditorPlaySettings.h |
|
| LaunchConfiguration | TEnumAsByte< EPlayOnLaunchConfiguration > | Which build configuration to use when launching on device. | Settings/LevelEditorPlaySettings.h |
|
| MonitorScreenResolutions | TArray< FPlayScreenResolution > | Collection of common screen resolutions on desktop monitors. | Settings/LevelEditorPlaySettings.h |
|
| MouseControlLabelPosition | TEnumAsByte< ELabelAnchorMode > | Location on screen to anchor the mouse control label when in PIE mode. | Settings/LevelEditorPlaySettings.h |
|
| MultipleInstancePositions | TArray< FIntPoint > | The last known screen positions of multiple instance windows (in pixels). | Settings/LevelEditorPlaySettings.h |
|
| NetworkEmulationSettings | FLevelEditorPlayNetworkEmulationSettings | Customizable settings allowing to emulate latency and packetloss for game network transmissions | Settings/LevelEditorPlaySettings.h |
|
| NewWindowHeight | int32 | The height of the new view port window in pixels (0 = use the desktop's screen resolution). | Settings/LevelEditorPlaySettings.h |
|
| NewWindowPosition | FIntPoint | The position of the new view port window on the screen in pixels. | Settings/LevelEditorPlaySettings.h |
|
| NewWindowWidth | int32 | The width of the new view port window in pixels (0 = use the desktop's screen resolution). | Settings/LevelEditorPlaySettings.h |
|
| PackFilesForLaunch | EPlayOnPakFileMode | Whether to content should be stored in pak files when launching on device. */. | Settings/LevelEditorPlaySettings.h |
|
| PhoneScreenResolutions | TArray< FPlayScreenResolution > | Collection of common screen resolutions on mobile phones. | Settings/LevelEditorPlaySettings.h |
|
| PIEAlwaysOnTop | uint32 | Whether to always have the PIE window on top of the parent windows. | Settings/LevelEditorPlaySettings.h |
|
| PIESafeZoneOverride | FMargin | Settings/LevelEditorPlaySettings.h |
|
|
| PlayFromHerePlayerStartClassName | FString | The PlayerStart class used when spawning the player at the current camera location. | Settings/LevelEditorPlaySettings.h |
|
| PlayInEditorSoundQualityLevel | int32 | Which quality level to use when playing in editor | Settings/LevelEditorPlaySettings.h |
|
| ServerFixedFPS | int32 | If > 0, Tick dedicated server at a fixed frame rate. | Settings/LevelEditorPlaySettings.h |
|
| ShouldMinimizeEditorOnVRPIE | bool | Should we minimize the editor when VR PIE is clicked (default = true) | Settings/LevelEditorPlaySettings.h |
|
| ShowMouseControlLabel | bool | Whether to show a label for mouse control gestures in the PIE view. | Settings/LevelEditorPlaySettings.h |
|
| SoloAudioInFirstPIEClient | bool | Whether to automatically solo audio in first PIE client. | Settings/LevelEditorPlaySettings.h |
|
| TabletScreenResolutions | TArray< FPlayScreenResolution > | Collection of common screen resolutions on tablet devices. | Settings/LevelEditorPlaySettings.h |
|
| TelevisionScreenResolutions | TArray< FPlayScreenResolution > | Collection of common screen resolutions on television screens. | Settings/LevelEditorPlaySettings.h |
|
| UseMouseForTouch | bool | While using the game viewport, it sends mouse movement and clicks as touch events, instead of as mouse events. | Settings/LevelEditorPlaySettings.h |
|
| ViewportGetsHMDControl | bool | Should Play-in-Viewport respect HMD orientations (default = false) | Settings/LevelEditorPlaySettings.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AdditionalServerGameOptions | FString | Additional options that will be passed to the server as URL parameters, in the format ?bIsLanMatch=1?listen - any additional command line switches should be passed in the Additional Server Launch Parameters field below. | Settings/LevelEditorPlaySettings.h |
|
| bHMDForPrimaryProcessOnly | bool | When running multiple player windows in multiple processes, this option determines how HMD(s)/Simulator(s) is/are attached to processes. | Settings/LevelEditorPlaySettings.h |
|
| bShowServerDebugDrawingByDefault | bool | Controls the default value of the show flag ServerDrawDebug | Settings/LevelEditorPlaySettings.h |
|
| ClientWindowHeight | int32 | Height to use when spawning additional windows. | Settings/LevelEditorPlaySettings.h |
|
| ClientWindowWidth | int32 | Width to use when spawning additional windows. | Settings/LevelEditorPlaySettings.h |
|
| CreateAudioDeviceForEveryPlayer | bool | If checked, a separate audio device is created for every player. | Settings/LevelEditorPlaySettings.h |
|
| PlayNetMode | TEnumAsByte< EPlayNetMode > | NetMode to use for Play In Editor. | Settings/LevelEditorPlaySettings.h |
|
| PlayNumberOfClients | int32 | The number of client windows to open. | Settings/LevelEditorPlaySettings.h |
|
| PrimaryPIEClientIndex | int | In multiplayer PIE which client will be the 'primary'. (default = 0, the first client) | Settings/LevelEditorPlaySettings.h |
|
| RouteGamepadToSecondWindow | bool | When running multiple player windows in a single process, this option determines how the game pad input gets routed. | Settings/LevelEditorPlaySettings.h |
|
| RunUnderOneProcess | bool | Spawn multiple player windows in a single instance of UE. | Settings/LevelEditorPlaySettings.h |
|
| ServerDebugDrawingColorTint | FLinearColor | Debug drawing originating from the server will be biased towards this color | Settings/LevelEditorPlaySettings.h |
|
| ServerDebugDrawingColorTintStrength | float | How strongly debug drawing originating from the server will be biased towards the tint color | Settings/LevelEditorPlaySettings.h |
|
| ServerMapNameOverride | FString | Override the map launched by the dedicated server (currently only used when in PIE_StandaloneWithServer net mode) | Settings/LevelEditorPlaySettings.h |
|
| ServerPort | uint16 | What port used by the server for simple networking | Settings/LevelEditorPlaySettings.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Settings/LevelEditorPlaySettings.h | |||
| Settings/LevelEditorPlaySettings.h | |||
bool GetAdditionalServerGameOptions
(
FString& OutAdditionalServerGameOptions |
Settings/LevelEditorPlaySettings.h | ||
bool GetClientWindowSize
(
FIntPoint& OutClientWindowSize |
Settings/LevelEditorPlaySettings.h | ||
EVisibility GetClientWindowSizeVisibility() |
Settings/LevelEditorPlaySettings.h | ||
EBuildConfiguration GetLaunchBuildConfiguration() |
Settings/LevelEditorPlaySettings.h | ||
EVisibility GetNetworkEmulationVisibility() |
Settings/LevelEditorPlaySettings.h | ||
bool GetPlayNetMode
(
EPlayNetMode& OutPlayNetMode |
Settings/LevelEditorPlaySettings.h | ||
EVisibility GetPlayNetModeVisibility() |
Settings/LevelEditorPlaySettings.h | ||
bool GetPlayNumberOfClients
(
int32& OutPlayNumberOfClients |
Settings/LevelEditorPlaySettings.h | ||
int GetPrimaryPIEClientIndex() |
Settings/LevelEditorPlaySettings.h | ||
bool GetRouteGamepadToSecondWindow
(
bool& OutRouteGamepadToSecondWindow |
Settings/LevelEditorPlaySettings.h | ||
EVisibility GetRouteGamepadToSecondWindowVisibility() |
Settings/LevelEditorPlaySettings.h | ||
bool GetRunUnderOneProcess
(
bool& OutRunUnderOneProcess |
Settings/LevelEditorPlaySettings.h | ||
bool GetServerMapNameOverride
(
FString& OutStandaloneServerMapName |
Settings/LevelEditorPlaySettings.h | ||
EVisibility GetServerMapNameOverrideVisibility() |
Settings/LevelEditorPlaySettings.h | ||
bool GetServerPort
(
uint16& OutServerPort |
Settings/LevelEditorPlaySettings.h | ||
bool IsAdditionalServerGameOptionsActive() |
Settings/LevelEditorPlaySettings.h | ||
bool IsClientWindowSizeActive() |
Settings/LevelEditorPlaySettings.h | ||
bool IsCreateAudioDeviceForEveryPlayer() |
Settings/LevelEditorPlaySettings.h | ||
bool IsHMDForPrimaryProcessOnly() |
Settings/LevelEditorPlaySettings.h | ||
bool IsNetworkEmulationEnabled() |
Should network emulation settings be applied or not | Settings/LevelEditorPlaySettings.h | |
bool IsOneHeadsetEachProcess() |
Settings/LevelEditorPlaySettings.h | ||
bool IsPlayNetModeActive() |
Settings/LevelEditorPlaySettings.h | ||
bool IsPlayNumberOfClientsActive() |
Settings/LevelEditorPlaySettings.h | ||
bool IsRouteGamepadToSecondWindowActive() |
Settings/LevelEditorPlaySettings.h | ||
bool IsRunUnderOneProcessActive() |
Settings/LevelEditorPlaySettings.h | ||
bool IsServerMapNameOverrideActive() |
Settings/LevelEditorPlaySettings.h | ||
bool IsServerPortActive() |
Settings/LevelEditorPlaySettings.h | ||
void RegisterCommonResolutionsMenu() |
Creates a widget for the resolution picker. | Settings/LevelEditorPlaySettings.h | |
void RescaleForMobilePreview
(
const UDeviceProfile* DeviceProfile, |
Settings/LevelEditorPlaySettings.h | ||
void SetClientWindowSize
(
const FIntPoint InClientWindowSize |
Settings/LevelEditorPlaySettings.h | ||
void SetPlayNetMode
(
const EPlayNetMode InPlayNetMode |
Accessors for fetching the values of multiplayer options, and returning whether the option is valid at this time. | Settings/LevelEditorPlaySettings.h | |
void SetPlayNumberOfClients
(
const int32 InPlayNumberOfClients |
Settings/LevelEditorPlaySettings.h | ||
void SetRunUnderOneProcess
(
const bool InRunUnderOneProcess |
Settings/LevelEditorPlaySettings.h | ||
void SetServerPort
(
const uint16 InServerPort |
Settings/LevelEditorPlaySettings.h | ||
bool ShowServerDebugDrawingByDefault() |
Settings/LevelEditorPlaySettings.h | ||
void UpdateCustomSafeZones() |
Recalculates and broadcasts safe zone size changes based on device to emulate and r.DebugSafeZone.TitleRatio values. | Settings/LevelEditorPlaySettings.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanEditChange
(
const FProperty* InProperty |
Settings/LevelEditorPlaySettings.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Settings/LevelEditorPlaySettings.h | ||
virtual void PostInitProperties() |
Settings/LevelEditorPlaySettings.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddScreenResolutionSection
(
UToolMenu* InToolMenu, |
Adds a section to the screen resolution menu. | Settings/LevelEditorPlaySettings.h | |
static FName GetCommonResolutionsMenuName() |
Settings/LevelEditorPlaySettings.h |