engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
FApp类 参考

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.

成员函数说明

◆ AuthorizeUser()

static FORCEINLINE void FApp::AuthorizeUser ( const FString &  UserName)
inlinestatic

Add the specified user to the list of authorized session users.

参数
UserNameThe name of the user to add.
参见
DenyUser, DenyAllUsers, IsAuthorizedUser

◆ CanEverRender()

static INLINE_CANEVERRENDER bool FApp::CanEverRender ( )
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).

返回
true if the application can render, false otherwise.

◆ CanEverRenderAudio()

static INLINE_CANEVERRENDER bool FApp::CanEverRenderAudio ( )
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).

返回
true if the application can render audio, false otherwise.

◆ DenyAllUsers()

static FORCEINLINE void FApp::DenyAllUsers ( )
inlinestatic

Removes all authorized users.

参见
AuthorizeUser, DenyUser, IsAuthorizedUser

◆ DenyUser()

static FORCEINLINE void FApp::DenyUser ( const FString &  UserName)
inlinestatic

Remove the specified user from the list of authorized session users.

参数
UserNameThe name of the user to remove.
参见
AuthorizeUser, DenyAllUsers, IsAuthorizedUser

◆ GetBranchName()

static FString FApp::GetBranchName ( )
static

Gets the name of the version control branch that this application was built from.

返回
The branch name.

◆ GetBuildConfiguration()

static EBuildConfiguration FApp::GetBuildConfiguration ( )
static

Gets the application's build configuration, i.e.

Debug or Shipping.

返回
The build configuration.

◆ GetBuildDate()

static FString FApp::GetBuildDate ( )
static

Gets the date at which this application was built.

返回
Build date string.

◆ GetBuildTargetType()

static EBuildTargetType FApp::GetBuildTargetType ( )
static

Gets the target type of the current application (eg.

client, server, etc...)

返回
The build target type

◆ GetCurrentFrameTime()

static FORCEINLINE TOptional< FQualifiedFrameTime > FApp::GetCurrentFrameTime ( )
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.

返回
the current frame time.

◆ GetCurrentTime()

static FORCEINLINE double FApp::GetCurrentTime ( )
inlinestatic

Gets current time in seconds.

返回
Current time in seconds.

◆ GetDeltaTime()

static FORCEINLINE double FApp::GetDeltaTime ( )
inlinestatic

Gets time delta in seconds.

返回
Time delta in seconds.

◆ GetFixedDeltaTime()

static FORCEINLINE double FApp::GetFixedDeltaTime ( )
inlinestatic

Gets time step in seconds if a fixed delta time is wanted.

返回
Time step in seconds for fixed delta time.

◆ GetGraphicsRHI()

static FString FApp::GetGraphicsRHI ( )
static

Gets the name of the graphics RHI currently in use.

返回
name of Graphics RHI

◆ GetIdleTime()

static FORCEINLINE double FApp::GetIdleTime ( )
inlinestatic

Gets idle time in seconds.

返回
Idle time in seconds.

◆ GetIdleTimeOvershoot()

static FORCEINLINE double FApp::GetIdleTimeOvershoot ( )
inlinestatic

Gets idle time overshoot in seconds (the time beyond the wait time we requested for the frame).

Only valid when IdleTime is > 0.

返回
Idle time in seconds.

◆ GetInstanceId()

static FORCEINLINE FGuid FApp::GetInstanceId ( )
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.

返回
Instance identifier, or an invalid GUID if there is no local instance.
参见
GetSessionId

◆ GetInstanceName()

static FString FApp::GetInstanceName ( )
inlinestatic

Gets the name of this application instance.

By default, the instance name is a combination of the computer name and process ID.

返回
Instance name string.

◆ GetLastTime()

static FORCEINLINE double FApp::GetLastTime ( )
inlinestatic

Gets previous value of CurrentTime.

返回
Previous value of CurrentTime.

◆ GetName()

static FString FApp::GetName ( )
inlinestatic

Gets the name of the application, i.e.

"UE4" or "Rocket".

待办事项:
need better application name discovery. this is quite horrible and may not work on future platforms.
返回
Application name string.

◆ GetProjectName()

static FORCEINLINE const TCHAR * FApp::GetProjectName ( )
inlinestatic

Gets the name of the current project.

返回
The project name.

◆ GetSessionId()

static FORCEINLINE FGuid FApp::GetSessionId ( )
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.

返回
Session identifier, or an invalid GUID if there is no local instance.
参见
GetInstanceId

◆ GetSessionName()

static FORCEINLINE FString FApp::GetSessionName ( )
inlinestatic

Gets the name of the session that this application is part of, if any.

返回
Session name string.

◆ GetSessionOwner()

static FORCEINLINE FString FApp::GetSessionOwner ( )
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.

返回
Name of session owner.

◆ GetTimecode()

static FTimecode FApp::GetTimecode ( )
static

Convert the current frame time into a readable timecode.

If the current frame time is not set, the timecode value will be defaulted.

返回
the current timecode.

◆ GetTimecodeFrameRate()

static FFrameRate FApp::GetTimecodeFrameRate ( )
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.

返回
the current timecode frame rate.

◆ GetUnfocusedVolumeMultiplier()

static float FApp::GetUnfocusedVolumeMultiplier ( )
static

Helper function to get UnfocusedVolumeMultiplier from config and store so it's not retrieved every frame

返回
Volume multiplier to use when app loses focus

◆ GetVolumeMultiplier()

static FORCEINLINE float FApp::GetVolumeMultiplier ( )
inlinestatic

Get Volume Multiplier

返回
Current volume multiplier

◆ HasProjectName()

static FORCEINLINE bool FApp::HasProjectName ( )
inlinestatic

Reports if the project name has been set

返回
true if the project name has been set

◆ InvalidateCurrentFrameTime()

static void FApp::InvalidateCurrentFrameTime ( )
inlinestatic

Invalidate the current frame time.

It will reset the TOptional.

◆ IsAuthorizedUser()

static FORCEINLINE bool FApp::IsAuthorizedUser ( const FString &  UserName)
inlinestatic

Check whether the specified user is authorized to interact with this session.

参数
UserNameThe name of the user to check.
返回
true if the user is authorized, false otherwise.
参见
AuthorizeUser, DenyUser, DenyAllUsers

◆ IsBenchmarking()

static FORCEINLINE bool FApp::IsBenchmarking ( )
inlinestatic

Checks whether application is in benchmark mode.

返回
true if application is in benchmark mode, false otherwise.

◆ IsEngineInstalled()

static bool FApp::IsEngineInstalled ( )
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.

返回
true if the engine is installed, false otherwise.

◆ IsGame()

static FORCEINLINE bool FApp::IsGame ( )
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.

返回
true if the application is a game, false otherwise.

◆ IsInstalled()

static bool FApp::IsInstalled ( )
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.

返回
true if the application is installed, false otherwise.

◆ IsProjectNameEmpty()

static FORCEINLINE bool FApp::IsProjectNameEmpty ( )
inlinestatic

Reports if the project name is empty

返回
true if the project name is empty

◆ IsStandalone()

static FORCEINLINE bool FApp::IsStandalone ( )
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.

返回
true if this application is standalone, false otherwise.

◆ IsThisInstance()

static FORCEINLINE bool FApp::IsThisInstance ( const FGuid &  InInstanceId)
inlinestatic

Check whether the given instance ID identifies this instance.

参数
InInstanceIdThe instance ID to check.
返回
true if the ID identifies this instance, false otherwise.

◆ IsUnattended()

static bool FApp::IsUnattended ( )
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.

返回
true if the application runs unattended, false otherwise.

◆ SetBenchmarking()

static void FApp::SetBenchmarking ( bool  bVal)
inlinestatic

Sets application benchmarking mode.

参数
bValTrue sets application in benchmark mode, false sets to non-benchmark mode.

◆ SetCurrentFrameTime()

static void FApp::SetCurrentFrameTime ( FQualifiedFrameTime  InFrameTime)
inlinestatic

Sets the current frame time.

参数
InFrameTime- current frame time and frame rate.

◆ SetCurrentTime()

static void FApp::SetCurrentTime ( double  Seconds)
inlinestatic

Sets current time in seconds.

参数
seconds- Time in seconds.

◆ SetDeltaTime()

static void FApp::SetDeltaTime ( double  Seconds)
inlinestatic

Sets time delta in seconds.

参数
secondsTime in seconds.

◆ SetFixedDeltaTime()

static void FApp::SetFixedDeltaTime ( double  Seconds)
inlinestatic

Sets time step in seconds if a fixed delta time is wanted.

参数
secondsTime step in seconds for fixed delta time.

◆ SetHasVRFocus()

static void FApp::SetHasVRFocus ( bool  bInHasVRFocus)
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.

参数
bInVRFocusnew VRFocus value

◆ SetIdleTime()

static void FApp::SetIdleTime ( double  Seconds)
inlinestatic

Sets idle time in seconds.

参数
seconds- Idle time in seconds.

◆ SetIdleTimeOvershoot()

static void FApp::SetIdleTimeOvershoot ( double  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.

◆ SetProjectName()

static FORCEINLINE void FApp::SetProjectName ( const TCHAR *  InProjectName)
inlinestatic

Sets the name of the current project.

参数
InProjectNameName of the current project.

◆ SetSessionName()

static FORCEINLINE void FApp::SetSessionName ( const FString &  NewName)
inlinestatic

Set a new session name.

参数
NewNameThe new session name.
参见
SetSessionOwner

◆ SetSessionOwner()

static FORCEINLINE void FApp::SetSessionOwner ( const FString &  NewOwner)
inlinestatic

Set a new session owner.

参数
NewOwnerThe name of the new owner.
参见
SetSessionName

◆ SetTimecodeAndFrameRate()

static void FApp::SetTimecodeAndFrameRate ( FTimecode  InTimecode,
FFrameRate  InTimecodeFrameRate 
)
inlinestatic

Sets the current timecode, and the frame rate to which it's relative.

参数
InTimecode- current timecode.
InTimecodeFrameRate- current timecode framerate.

◆ SetUseFixedTimeStep()

static void FApp::SetUseFixedTimeStep ( bool  bVal)
inlinestatic

Enables or disabled usage of fixed time step.

参数
whetherto use fixed time step or not

◆ SetUseVRFocus()

static void FApp::SetUseVRFocus ( bool  bInUseVRFocus)
static

Sets if VRFocus should be used.

参数
bInUseVRFocusnew bUseVRFocus value

◆ SetVolumeMultiplier()

static FORCEINLINE void FApp::SetVolumeMultiplier ( float  InVolumeMultiplier)
inlinestatic

Set Volume Multiplier

参数
InVolumeMultipliernew volume multiplier

◆ ShouldUseThreadingForPerformance()

static bool FApp::ShouldUseThreadingForPerformance ( )
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

返回
true if this isn't a server, has more than one core, does not have a -onethread command line options, etc.

◆ UseFixedTimeStep()

static bool FApp::UseFixedTimeStep ( )
inlinestatic

Gets whether we want to use a fixed time step or not.

返回
True if using fixed time step, false otherwise.

该类的文档由以下文件生成: