Provides information about the application. 更多...
#include <App.h>
静态 Public 成员函数 | |
| static FORCEINLINE void | AuthorizeUser (const FString &UserName) |
| Add the specified user to the list of authorized session users. 更多... | |
| static INLINE_CANEVERRENDER bool | CanEverRender () |
| Checks whether this application can render anything. 更多... | |
| static INLINE_CANEVERRENDER bool | CanEverRenderAudio () |
| Checks whether this application can render audio. 更多... | |
| static FORCEINLINE void | DenyAllUsers () |
| Removes all authorized users. 更多... | |
| static FORCEINLINE void | DenyUser (const FString &UserName) |
| Remove the specified user from the list of authorized session users. 更多... | |
| static FString | GetBranchName () |
| Gets the name of the version control branch that this application was built from. 更多... | |
| static EBuildConfiguration | GetBuildConfiguration () |
| Gets the application's build configuration, i.e. 更多... | |
| static FString | GetBuildDate () |
| Gets the date at which this application was built. 更多... | |
| static EBuildTargetType | GetBuildTargetType () |
| Gets the target type of the current application (eg. 更多... | |
| static FORCEINLINE TOptional< FQualifiedFrameTime > | GetCurrentFrameTime () |
| Gets a frame number generated by the engine's timecode provider. 更多... | |
| static FORCEINLINE double | GetCurrentTime () |
| Gets current time in seconds. 更多... | |
| static FORCEINLINE double | GetDeltaTime () |
| Gets time delta in seconds. 更多... | |
| static int32 | GetEngineIsPromotedBuild () |
| Gets the value of ENGINE_IS_PROMOTED_BUILD. | |
| static FString | GetEpicProductIdentifier () |
| Gets the identifier for the unreal engine | |
| static FORCEINLINE double | GetFixedDeltaTime () |
| Gets time step in seconds if a fixed delta time is wanted. 更多... | |
| static FString | GetGraphicsRHI () |
| Gets the name of the graphics RHI currently in use. 更多... | |
| static FORCEINLINE double | GetIdleTime () |
| Gets idle time in seconds. 更多... | |
| static FORCEINLINE double | GetIdleTimeOvershoot () |
| Gets idle time overshoot in seconds (the time beyond the wait time we requested for the frame). 更多... | |
| static FORCEINLINE FGuid | GetInstanceId () |
| Gets the globally unique identifier of this application instance. 更多... | |
| static FString | GetInstanceName () |
| Gets the name of this application instance. 更多... | |
| static FORCEINLINE double | GetLastTime () |
| Gets previous value of CurrentTime. 更多... | |
| static FString | GetName () |
| Gets the name of the application, i.e. 更多... | |
| static FORCEINLINE const TCHAR * | GetProjectName () |
| Gets the name of the current project. 更多... | |
| static FORCEINLINE FGuid | GetSessionId () |
| Gets the identifier of the session that this application is part of. 更多... | |
| static FORCEINLINE FString | GetSessionName () |
| Gets the name of the session that this application is part of, if any. 更多... | |
| static FORCEINLINE FString | GetSessionOwner () |
| Gets the name of the user who owns the session that this application is part of, if any. 更多... | |
| static FTimecode | GetTimecode () |
| Convert the current frame time into a readable timecode. 更多... | |
| static FFrameRate | GetTimecodeFrameRate () |
| Get the frame rate of the current frame time. 更多... | |
| static float | GetUnfocusedVolumeMultiplier () |
| Helper function to get UnfocusedVolumeMultiplier from config and store so it's not retrieved every frame 更多... | |
| static FORCEINLINE float | GetVolumeMultiplier () |
| Get Volume Multiplier 更多... | |
| static FORCEINLINE bool | HasProjectName () |
| Reports if the project name has been set 更多... | |
| static FORCEINLINE bool | HasVRFocus () |
| Gets VRFocus, which indicates that the application should continue to render Audio and Video as if it had window focus, even though it may not. | |
| static void | InitializeSession () |
| Initializes the application session. | |
| static void | InvalidateCurrentFrameTime () |
| Invalidate the current frame time. 更多... | |
| static FORCEINLINE bool | IsAuthorizedUser (const FString &UserName) |
| Check whether the specified user is authorized to interact with this session. 更多... | |
| static FORCEINLINE bool | IsBenchmarking () |
| Checks whether application is in benchmark mode. 更多... | |
| static bool | IsEngineInstalled () |
| Checks whether the engine components of this application have been installed. 更多... | |
| static FORCEINLINE bool | IsGame () |
| Checks whether this application is a game. 更多... | |
| static bool | IsInstalled () |
| Checks whether this application has been installed. 更多... | |
| static FORCEINLINE bool | IsProjectNameEmpty () |
| Reports if the project name is empty 更多... | |
| static FORCEINLINE bool | IsStandalone () |
| Checks whether this is a standalone application. 更多... | |
| static FORCEINLINE bool | IsThisInstance (const FGuid &InInstanceId) |
| Check whether the given instance ID identifies this instance. 更多... | |
| static bool | IsUnattended () |
| Checks whether this application runs unattended. 更多... | |
| static void | SetBenchmarking (bool bVal) |
| Sets application benchmarking mode. 更多... | |
| static void | SetCurrentFrameTime (FQualifiedFrameTime InFrameTime) |
| Sets the current frame time. 更多... | |
| static void | SetCurrentTime (double Seconds) |
| Sets current time in seconds. 更多... | |
| static void | SetDeltaTime (double Seconds) |
| Sets time delta in seconds. 更多... | |
| static void | SetFixedDeltaTime (double Seconds) |
| Sets time step in seconds if a fixed delta time is wanted. 更多... | |
| static void | SetGraphicsRHI (FString RHIString) |
| Sets the Graphics RHI currently in use | |
| static void | SetHasVRFocus (bool bInHasVRFocus) |
| Sets VRFocus, which indicates that the application should continue to render Audio and Video as if it had window focus, even though it may not. 更多... | |
| static void | SetIdleTime (double Seconds) |
| Sets idle time in seconds. 更多... | |
| static void | SetIdleTimeOvershoot (double Seconds) |
| Sets idle time overshoot in seconds (the time beyond the wait time we requested for the frame). 更多... | |
| static FORCEINLINE void | SetProjectName (const TCHAR *InProjectName) |
| Sets the name of the current project. 更多... | |
| static FORCEINLINE void | SetSessionName (const FString &NewName) |
| Set a new session name. 更多... | |
| static FORCEINLINE void | SetSessionOwner (const FString &NewOwner) |
| Set a new session owner. 更多... | |
| static void | SetTimecodeAndFrameRate (FTimecode InTimecode, FFrameRate InTimecodeFrameRate) |
| Sets the current timecode, and the frame rate to which it's relative. 更多... | |
| static void | SetUnfocusedVolumeMultiplier (float InVolumeMultiplier) |
| Sets the Unfocused Volume Multiplier | |
| static void | SetUseFixedTimeStep (bool bVal) |
| Enables or disabled usage of fixed time step. 更多... | |
| static void | SetUseVRFocus (bool bInUseVRFocus) |
| Sets if VRFocus should be used. 更多... | |
| static FORCEINLINE void | SetVolumeMultiplier (float InVolumeMultiplier) |
| Set Volume Multiplier 更多... | |
| static bool | ShouldUseThreadingForPerformance () |
| Checks whether the application should run multi-threaded for performance critical features. 更多... | |
| static void | UpdateLastTime () |
| Updates Last time to CurrentTime. | |
| static bool | UseFixedTimeStep () |
| Gets whether we want to use a fixed time step or not. 更多... | |
| static FORCEINLINE bool | UseVRFocus () |
| Gets if VRFocus should be used | |
Provides information about the application.
|
inlinestatic |
Add the specified user to the list of authorized session users.
| UserName | The name of the user to add. |
|
inlinestatic |
Checks whether this application can render anything.
Certain application types never render, while for others this behavior may be controlled by switching to NullRHI. This can be used for decisions like omitting code paths that make no sense on servers or games running in headless mode (e.g. automated tests).
|
inlinestatic |
Checks whether this application can render audio.
Certain application types produce sound, while for others this can be controlled via the -nosound cmdline. This can be used for decisions like omitting code paths that make no sense on servers or games running in headless mode (e.g. automated tests).
|
inlinestatic |
Removes all authorized users.
|
inlinestatic |
Remove the specified user from the list of authorized session users.
| UserName | The name of the user to remove. |
|
static |
Gets the name of the version control branch that this application was built from.
|
static |
Gets the application's build configuration, i.e.
Debug or Shipping.
|
static |
Gets the date at which this application was built.
|
static |
Gets the target type of the current application (eg.
client, server, etc...)
|
inlinestatic |
Gets a frame number generated by the engine's timecode provider.
The current frame time is used to generate a timecode value. The optional will be false if no timecode provider was set or is not in a synchronized state.
|
inlinestatic |
Gets current time in seconds.
|
inlinestatic |
Gets time delta in seconds.
|
inlinestatic |
Gets time step in seconds if a fixed delta time is wanted.
|
static |
Gets the name of the graphics RHI currently in use.
|
inlinestatic |
Gets idle time in seconds.
|
inlinestatic |
Gets idle time overshoot in seconds (the time beyond the wait time we requested for the frame).
Only valid when IdleTime is > 0.
|
inlinestatic |
Gets the globally unique identifier of this application instance.
Every running instance of the engine has a globally unique instance identifier that can be used to identify it from anywhere on the network.
|
inlinestatic |
Gets the name of this application instance.
By default, the instance name is a combination of the computer name and process ID.
|
inlinestatic |
Gets previous value of CurrentTime.
|
inlinestatic |
Gets the name of the application, i.e.
"UE4" or "Rocket".
|
inlinestatic |
Gets the name of the current project.
|
inlinestatic |
Gets the identifier of the session that this application is part of.
A session is group of applications that were launched and logically belong together. For example, when starting a new session in UFE that launches a game on multiple devices, all engine instances running on those devices will have the same session identifier. Conversely, sessions that were launched separately will have different session identifiers.
|
inlinestatic |
Gets the name of the session that this application is part of, if any.
|
inlinestatic |
Gets the name of the user who owns the session that this application is part of, if any.
If this application is part of a session that was launched from UFE, this function will return the name of the user that launched the session. If this application is not part of a session, this function will return the name of the local user account under which the application is running.
|
static |
Convert the current frame time into a readable timecode.
If the current frame time is not set, the timecode value will be defaulted.
|
static |
Get the frame rate of the current frame time.
If the current frame time is not set, the frame rate value will be defaulted.
|
static |
Helper function to get UnfocusedVolumeMultiplier from config and store so it's not retrieved every frame
|
inlinestatic |
Get Volume Multiplier
|
inlinestatic |
Reports if the project name has been set
|
inlinestatic |
Invalidate the current frame time.
It will reset the TOptional.
|
inlinestatic |
Check whether the specified user is authorized to interact with this session.
| UserName | The name of the user to check. |
|
inlinestatic |
Checks whether application is in benchmark mode.
|
static |
Checks whether the engine components of this application have been installed.
In binary UE4 releases, the engine can be installed while the game is not. The game IsInstalled() setting will take precedence over this flag.
To override, pass -engineinstalled or -enginenotinstalled on the command line.
|
inlinestatic |
Checks whether this application is a game.
Returns true if a normal or PIE game is active (basically !GIsEdit or || GIsPlayInEditorWorld) This must NOT be accessed on threads other than the game thread! Use View->Family->EnginShowFlags.Game on the rendering thread.
|
static |
Checks whether this application has been installed.
Non-server desktop shipping builds are assumed to be installed.
Installed applications may not write to the folder in which they exist since they are likely in a system folder (like "Program Files" in windows). Instead, they should write to the OS-specific user folder FPlatformProcess::UserDir() or application data folder FPlatformProcess::ApplicationSettingsDir() User Access Control info for windows Vista and newer: http://en.wikipedia.org/wiki/User_Account_Control
To run an "installed" build without installing, use the -Installed command line parameter. To run a "non-installed" desktop shipping build, use the -NotInstalled command line parameter.
|
inlinestatic |
Reports if the project name is empty
|
inlinestatic |
Checks whether this is a standalone application.
An application is standalone if it has not been launched as part of a session from UFE. If an application was launched from UFE, it is part of a session and not considered standalone.
|
inlinestatic |
Check whether the given instance ID identifies this instance.
| InInstanceId | The instance ID to check. |
|
inlinestatic |
Checks whether this application runs unattended.
Unattended applications are not monitored by anyone or are unable to receive user input. This method can be used to determine whether UI pop-ups or other dialogs should be shown.
|
inlinestatic |
Sets application benchmarking mode.
| bVal | True sets application in benchmark mode, false sets to non-benchmark mode. |
|
inlinestatic |
Sets the current frame time.
| InFrameTime | - current frame time and frame rate. |
|
inlinestatic |
Sets current time in seconds.
| seconds | - Time in seconds. |
|
inlinestatic |
Sets time delta in seconds.
| seconds | Time in seconds. |
|
inlinestatic |
Sets time step in seconds if a fixed delta time is wanted.
| seconds | Time step in seconds for fixed delta time. |
|
static |
Sets VRFocus, which indicates that the application should continue to render Audio and Video as if it had window focus, even though it may not.
| bInVRFocus | new VRFocus value |
|
inlinestatic |
Sets idle time in seconds.
| seconds | - Idle time in seconds. |
|
inlinestatic |
Sets idle time overshoot in seconds (the time beyond the wait time we requested for the frame).
Only valid when IdleTime is > 0.
| seconds | - Idle time in seconds. |
|
inlinestatic |
Sets the name of the current project.
| InProjectName | Name of the current project. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Sets the current timecode, and the frame rate to which it's relative.
| InTimecode | - current timecode. |
| InTimecodeFrameRate | - current timecode framerate. |
|
inlinestatic |
Enables or disabled usage of fixed time step.
| whether | to use fixed time step or not |
|
static |
Sets if VRFocus should be used.
| bInUseVRFocus | new bUseVRFocus value |
|
inlinestatic |
Set Volume Multiplier
| InVolumeMultiplier | new volume multiplier |
|
static |
Checks whether the application should run multi-threaded for performance critical features.
This method is used for performance based threads (like rendering, task graph). This will not disable async IO or similar threads needed to disable hitching
|
inlinestatic |
Gets whether we want to use a fixed time step or not.