Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
Inheritance Hierarchy
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/GameEngine.h |
Include | #include "Engine/GameEngine.h" |
Syntax
UCLASS (Config=Engine, Transient, MinimalAPI)
class UGameEngine : public UEngine
Remarks
Engine that manages core systems that enable a game.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
TObjectPtr< UGameInstance > | GameInstance | |
![]() |
TSharedPtr< class SViewport > | GameViewportWidget | The game viewport widget |
![]() |
TWeakPtr< class SWindow > | GameViewportWindow | The game viewport window |
![]() ![]() ![]() |
float | MaxDeltaTime | Maximium delta time the engine uses to populate FApp::DeltaTime. If 0, unbound. |
![]() |
TSharedPtr< class FSceneViewport > | SceneViewport | The primary scene viewport |
![]() ![]() ![]() |
float | ServerFlushLogInterval | Maximium time (in seconds) between the flushes of the logs on the server (best effort). |
![]() |
FMovieSceneCaptureHandle | StartupMovieCaptureHandle | Handle to a movie capture implementation to create on startup |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UGameEngine
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | ConditionallyOverrideSettings
(
int32& ResolutionX, |
Modifies the game window resolution settings if any overrides have been specified on the command line and overrides are enabled (see EnableGameWindowSettingsOverride) |
![]() |
void | CreateGameViewport
(
UGameViewportClient* GameViewportClient |
Creates the game viewport |
![]() |
void | CreateGameViewportWidget
(
UGameViewportClient* GameViewportClient |
Creates the viewport widget where the games Slate UI is added to. |
![]() ![]() |
TSharedRef< SWindow > | Creates the game window | |
![]() ![]() |
void | DetermineGameWindowResolution
(
int32& ResolutionX, |
Determines the resolution of the game window, ensuring that the requested size is never bigger than the available desktop size |
![]() ![]() |
void | EnableGameWindowSettingsOverride
(
bool bEnabled |
Enables/disables game window resolution setting overrides specified on the command line (true by default) |
![]() ![]() |
FSceneViewport * | GetGameSceneViewport
(
UGameViewportClient* ViewportClient |
|
![]() |
UWorld * | GetGameWorld () |
This is a global, parameterless function used by the online subsystem modules. |
![]() |
bool | HandleApplyUserSettingsCommand
(
const TCHAR* Cmd, |
|
![]() |
bool | HandleCancelCommand
(
const TCHAR* Cmd, |
|
![]() |
bool | HandleCommand
(
const TCHAR* Cmd, |
Exec command handlers. |
![]() |
bool | HandleExitCommand
(
const TCHAR* Cmd, |
|
![]() |
bool | HandleGetMaxTickRateCommand
(
const TCHAR* Cmd, |
|
![]() |
bool | HandleMinimizeCommand
(
const TCHAR* Cmd, |
|
![]() |
void | OnGameWindowClosed
(
const TSharedRef< SWindow >& WindowBeingClosed |
Called when the game window closes (ends the game) |
![]() |
void | OnGameWindowMoved
(
const TSharedRef< SWindow >& WindowBeingMoved |
Called when the game window is moved |
![]() |
void | OnViewportResized
(
FViewport* Viewport, |
|
![]() ![]() |
void | ||
![]() |
void | Changes the game window to use the game viewport instead of any loading screen or movie that might be using it instead |
Overridden from UEngine
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
TSharedPtr< SViewport > | Returns the GameViewport widget | |
![]() ![]() ![]() |
float | GetMaxTickRate
(
float DeltaTime, |
Get tick rate limiter.Get tick rate limitor. |
![]() ![]() |
void | HandleBrowseToDefaultMapFailure
(
FWorldContext& Context, |
Attempts to gracefully handle a failure to travel to the default map. |
![]() ![]() |
void | Init
(
IEngineLoop* InEngineLoop |
Initialize the game engine. |
![]() ![]() |
bool | NetworkRemapPath
(
UNetConnection* Connection, |
|
![]() ![]() |
void | PreExit () |
Called at shutdown, just before the exit purge. |
![]() ![]() |
void | ProcessToggleFreezeCommand
(
UWorld* InWorld |
Handles freezing/unfreezing of rendering |
![]() ![]() |
void | ProcessToggleFreezeStreamingCommand
(
UWorld* InWorld |
Handles frezing/unfreezing of streaming |
![]() ![]() |
void | RedrawViewports
(
bool bShouldPresent |
Redraws all viewports. |
![]() ![]() ![]() |
bool | ||
![]() ![]() |
void | Start () |
Start the game, separate from the initialize call to allow for post initialize configuration before the game starts. |
![]() ![]() |
void | Tick
(
float DeltaSeconds, |
Update everything. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Called to finish destroying the object. |