Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Settings
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULevelEditorPlaySettings
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Classes/Settings/LevelEditorPlaySettings.h |
| Include | #include "Settings/LevelEditorPlaySettings.h" |
Syntax
UCLASS (Config=EditorPerProjectUserSettings, MinimalAPI)
class ULevelEditorPlaySettings : public UObject
Remarks
Implements the Editor's play settings.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FString | AdditionalLaunchParameters | Extra parameters to be include as part of the command line for the standalone game. | |
| FString | AdditionalServerLaunchParameters | Additional options that will be passed to the server as arguments, for example -debug. | |
| bool | AutoRecompileBlueprints | Whether to automatically recompile blueprints on PIE | |
| bool | bAutoCompileBlueprintsOnLaunch | Whether to automatically recompile dirty Blueprints before launching | |
| bool | bEmulateStereo | Whether we should emulate stereo (helps checking VR rendering issues). | |
| bool | bLaunchSeparateServer | 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). | |
| uint32: 1 | bOnlyLoadVisibleLevelsInPIE | True if Play In Editor should only load currently-visible levels in PIE. | |
| uint32: 1 | bPreferToStreamLevelsInPIE | ||
| bool | bPromoteOutputLogWarningsDuringPIE | Should warnings and errors in the Output Log during "Play in Editor" be promoted to the message log? | |
| bool | bShouldMinimizeEditorOnNonVRPIE | Should we minimize the editor when non-VR PIE is clicked (default = false) | |
| TEnumAsByte< EPlayOnBuildMode > | BuildGameBeforeLaunch | Whether to build the game before launching on device. | |
| bool | bUseNonRealtimeAudioDevice | Whether to use a non-realtime audio device during PIE | |
| uint32: 1 | CenterNewWindow | Whether the new window should be centered on the screen. | |
| TArray< int32 > | ClientFixedFPS | If > 0, Tick clients at a fixed frame rate. | |
| TArray< FVector2D > | CustomUnsafeZoneDimensions | ||
| TArray< FVector2D > | CustomUnsafeZoneStarts | ||
| FString | DeviceToEmulate | ||
| uint32: 1 | DisableStandaloneSound | Whether sound should be disabled when playing standalone games. | |
| bool | EnableGameSound | Whether to play sounds during PIE | |
| bool | EnablePIEEnterAndExitSounds | Whether to play a sound when entering and exiting PIE | |
| bool | GameGetsMouseControl | Should Play-in-Editor automatically give mouse control to the game on PIE start (default = false). | |
| TArray< FPlayScreenResolution > | LaptopScreenResolutions | Collection of common screen resolutions on mobile phones. | |
| FString | LastExecutedLaunchDevice | The name of the last platform that the user ran a play session on. | |
| TEnumAsByte< ELaunchModeType > | LastExecutedLaunchModeType | The last type of play-on session the user ran. | |
| FString | LastExecutedLaunchName | The name of the last device that the user ran a play session on. | |
| FString | LastExecutedPIEPreviewDevice | The name of the last device that the user ran a play session on. | |
| TEnumAsByte< EPlayModeLocations > | LastExecutedPlayModeLocation | The last type of play location the user ran. | |
| TEnumAsByte< EPlayModeType > | LastExecutedPlayModeType | The last type of play session the user ran. | |
| FIntPoint | LastSize | The last known screen size for the first instance window (in pixels). | |
| TEnumAsByte< EPlayOnLaunchConfiguration > | LaunchConfiguration | Which build configuration to use when launching on device. | |
| TArray< FPlayScreenResolution > | MonitorScreenResolutions | Collection of common screen resolutions on desktop monitors. | |
| TEnumAsByte< ELabelAnchorMode > | MouseControlLabelPosition | Location on screen to anchor the mouse control label when in PIE mode. | |
| TArray< FIntPoint > | MultipleInstancePositions | The last known screen positions of multiple instance windows (in pixels). | |
| FLevelEditorPlayNetworkEmulationSettings | NetworkEmulationSettings | Customizable settings allowing to emulate latency and packetloss for game network transmissions | |
| int32 | NewWindowHeight | The height of the new view port window in pixels (0 = use the desktop's screen resolution). | |
| FIntPoint | NewWindowPosition | The position of the new view port window on the screen in pixels. | |
| int32 | NewWindowWidth | The width of the new view port window in pixels (0 = use the desktop's screen resolution). | |
| EPlayOnPakFileMode | PackFilesForLaunch | Whether to content should be stored in pak files when launching on device. */. | |
| TArray< FPlayScreenResolution > | PhoneScreenResolutions | Collection of common screen resolutions on mobile phones. | |
| uint32: 1 | PIEAlwaysOnTop | Whether to always have the PIE window on top of the parent windows. | |
| FMargin | PIESafeZoneOverride | ||
| FString | PlayFromHerePlayerStartClassName | The PlayerStart class used when spawning the player at the current camera location. | |
| int32 | PlayInEditorSoundQualityLevel | Which quality level to use when playing in editor | |
| int32 | ServerFixedFPS | If > 0, Tick dedicated server at a fixed frame rate. | |
| bool | ShouldMinimizeEditorOnVRPIE | Should we minimize the editor when VR PIE is clicked (default = true) | |
| bool | ShowMouseControlLabel | Whether to show a label for mouse control gestures in the PIE view. | |
| bool | SoloAudioInFirstPIEClient | Whether to automatically solo audio in first PIE client. | |
| TArray< FPlayScreenResolution > | TabletScreenResolutions | Collection of common screen resolutions on tablet devices. | |
| TArray< FPlayScreenResolution > | TelevisionScreenResolutions | Collection of common screen resolutions on television screens. | |
| bool | UseMouseForTouch | While using the game viewport, it sends mouse movement and clicks as touch events, instead of as mouse events. | |
| bool | ViewportGetsHMDControl | Should Play-in-Viewport respect HMD orientations (default = false) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ULevelEditorPlaySettings
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddScreenResolutionSection
(
UToolMenu* InToolMenu, |
Adds a section to the screen resolution menu. | |
| FMargin | |||
| FMargin | |||
| bool | GetAdditionalServerGameOptions
(
FString& OutAdditionalServerGameOptions |
||
| bool | GetClientWindowSize
(
FIntPoint& OutClientWindowSize |
||
| EVisibility | |||
| FName | |||
| EBuildConfiguration | |||
| EVisibility | |||
| bool | GetPlayNetMode
(
EPlayNetMode& OutPlayNetMode |
||
| EVisibility | |||
| bool | GetPlayNumberOfClients
(
int32& OutPlayNumberOfClients |
||
| int | |||
| bool | GetRouteGamepadToSecondWindow
(
bool& OutRouteGamepadToSecondWindow |
||
| EVisibility | |||
| bool | GetRunUnderOneProcess
(
bool& OutRunUnderOneProcess |
||
| bool | GetServerMapNameOverride
(
FString& OutStandaloneServerMapName |
||
| EVisibility | |||
| bool | GetServerPort
(
uint16& OutServerPort |
||
| bool | |||
| bool | |||
| bool | |||
| bool | Should network emulation settings be applied or not | ||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| void | Creates a widget for the resolution picker. | ||
| void | RescaleForMobilePreview
(
const UDeviceProfile* DeviceProfile, |
||
| void | SetClientWindowSize
(
const FIntPoint InClientWindowSize |
||
| void | SetPlayNetMode
(
const EPlayNetMode InPlayNetMode |
Accessors for fetching the values of multiplayer options, and returning whether the option is valid at this time. | |
| void | SetPlayNumberOfClients
(
const int32 InPlayNumberOfClients |
||
| void | SetRunUnderOneProcess
(
const bool InRunUnderOneProcess |
||
| void | SetServerPort
(
const uint16 InServerPort |
||
| bool | |||
| void | Recalculates and broadcasts safe zone size changes based on device to emulate and r.DebugSafeZone.TitleRatio values. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |