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

Abstract base class of all Engine classes, responsible for management of systems critical to editor or game systems. 更多...

#include <Engine.h>

+ 类 UEngine 继承关系图:

类

struct  FCopyPropertiesForUnrelatedObjectsParams
 Makes a strong effort to copy everything possible from and old object to a new object of a different class, used for blueprint to update things after a recompile. 更多...
 

Public 成员函数

void AddOnScreenDebugMessage (int32 Key, float TimeToDisplay, FColor DisplayColor, const FString &DebugMessage, bool bNewerOnTop=true, const FVector2D &TextScale=FVector2D::UnitVector)
 Add a FString to the On-screen debug message system. 更多...
 
void AddOnScreenDebugMessage (uint64 Key, float TimeToDisplay, FColor DisplayColor, const FString &DebugMessage, bool bNewerOnTop=true, const FVector2D &TextScale=FVector2D::UnitVector)
 Add a FString to the On-screen debug message system. 更多...
 
void AddPerformanceDataConsumer (TSharedPtr< IPerformanceDataConsumer > Consumer)
 Register a performance data consumer with the engine; it will be passed performance information each frame
 
void AddTextureStreamingSlaveLoc (FVector InLoc, float BoostFactor, bool bOverrideLocation, float OverrideDuration)
 Adds a world location as a secondary view location for purposes of texture streaming. 更多...
 
virtual bool AllowSelectTranslucent () const
 
virtual bool AreEditorAnalyticsEnabled () const
 
void BlockTillLevelStreamingCompleted (UWorld *InWorld)
 Updates level streaming state using active game players view and blocks until all sub-levels are loaded/ visible/ hidden so further calls to UpdateLevelStreaming won't do any work unless state changes. 更多...
 
void BroadcastNetworkDDosSEscalation (UWorld *World, UNetDriver *NetDriver, FString SeverityCategory)
 Called by internal engine systems after network burst or DDoS is detected
 
void BroadcastNetworkFailure (UWorld *World, UNetDriver *NetDriver, ENetworkFailure::Type FailureType, const FString &ErrorString=TEXT(""))
 Called by internal engine systems after a network failure has occurred
 
void BroadcastNetworkLagStateChanged (UWorld *World, UNetDriver *NetDriver, ENetworkLagState::Type LagType)
 Called by internal engine systems after network lag has been detected
 
void BroadcastTravelFailure (UWorld *InWorld, ETravelFailure::Type FailureType, const FString &ErrorString=TEXT(""))
 Called by internal engine systems after a travel failure has occurred
 
virtual EBrowseReturnVal::Type Browse (FWorldContext &WorldContext, FURL URL, FString &Error)
 Browse to a specified URL, relative to the current one.
 
virtual void CancelAllPending ()
 Cancel pending level.
 
void CancelPendingMapChange (UWorld *InWorld)
 Cancels pending map change. 更多...
 
void ChangeDynamicResolutionStateAtNextFrame (TSharedPtr< class IDynamicResolutionState > NewState)
 Override dynamic resolution state for next frame. 更多...
 
void CleanupGameViewport ()
 Clean up the GameViewport
 
void CleanupPackagesToFullyLoad (FWorldContext &Context, EFullyLoadPackageType FullyLoadType, const FString &Tag)
 Removes the PerMapPackages from the RootSet 更多...
 
void ClearOnScreenDebugMessages ()
 Clear any existing debug messages
 
void ConditionalCollectGarbage ()
 Collect garbage once per frame driven by World ticks
 
virtual double CorrectNegativeTimeDelta (double DeltaRealTime)
 Allows games to correct the negative delta 更多...
 
bool CreateNamedNetDriver (UPendingNetGame *PendingNetGame, FName NetDriverName, FName NetDriverDefinition)
 Creates a UNetDriver and associates a name with it. 更多...
 
bool CreateNamedNetDriver (UWorld *InWorld, FName NetDriverName, FName NetDriverDefinition)
 Creates a UNetDriver and associates a name with it. 更多...
 
UNetDriver * CreateNetDriver (UWorld *InWorld, FName NetDriverDefinition)
 Creates a UNetDriver with an engine assigned name 更多...
 
 DECLARE_EVENT_FourParams (UEngine, FOnNetworkFailure, UWorld *, UNetDriver *, ENetworkFailure::Type, const FString &)
 Error message event relating to network failures 更多...
 
 DECLARE_EVENT_OneParam (UEngine, FWorldAddedEvent, UWorld *)
 Triggered when a world is added.
 
 DECLARE_EVENT_OneParam (UEngine, FWorldDestroyedEvent, UWorld *)
 Triggered when a world is destroyed.
 
 DECLARE_EVENT_ThreeParams (UEngine, FOnNetworkDDoSEscalation, UWorld *, UNetDriver *, FString)
 Network burst or DDoS detected. 更多...
 
 DECLARE_EVENT_ThreeParams (UEngine, FOnNetworkLagStateChanged, UWorld *, UNetDriver *, ENetworkLagState::Type)
 Network lag detected. 更多...
 
 DECLARE_EVENT_ThreeParams (UEngine, FOnNewStatRegistered, const FName &, const FName &, const FText &)
 Delegate we fire every time a new stat has been registered. 更多...
 
 DECLARE_EVENT_ThreeParams (UEngine, FOnTravelFailure, UWorld *, ETravelFailure::Type, const FString &)
 Error message event relating to server travel failures 更多...
 
void DelayGarbageCollection ()
 Requests a one frame delay of Garbage Collection
 
void DestroyNamedNetDriver (UWorld *InWorld, FName NetDriverName)
 Destroys a UNetDriver based on its name. 更多...
 
void EmitDynamicResolutionEvent (EDynamicResolutionStateEvent Event)
 Emit an event for dynamic resolution if not already done.
 
void EnableScreenSaver (bool bEnable)
 Enables or disables the ScreenSaver (PC only) 更多...
 
void ExecEngineStat (UWorld *World, FCommonViewportClient *ViewportClient, const TCHAR *InName)
 Wrapper for firing a simple stat exec. 更多...
 
virtual bool Experimental_ShouldPreDuplicateMap (const FName MapName) const
 If this function returns true, the DynamicSourceLevels collection will be duplicated for the given map. 更多...
 
class ULocalPlayer * FindFirstLocalPlayerFromControllerId (int32 ControllerId) const
 Returns the first ULocalPlayer that matches the given ControllerId. 更多...
 
UNetDriver * FindNamedNetDriver (const UWorld *InWorld, FName NetDriverName)
 Finds a UNetDriver based on its name. 更多...
 
virtual void FinishDestroy () override
 Called to finish destroying the object. 更多...
 
void ForceGarbageCollection (bool bFullPurge=false)
 Updates the timer between garbage collection such that at the next opportunity garbage collection will be run.
 
FAudioDeviceHandle GetActiveAudioDevice ()
 
void GetAllLocalPlayerControllers (TArray< APlayerController * > &PlayerList)
 Gets all local players associated with the engine. 更多...
 
FAudioDeviceManager * GetAudioDeviceManager ()
 
void GetAverageUnitTimes (TArray< float > &AverageTimes)
 Returns the average game/render/gpu/total time since this function was last called
 
UWorld * GetCurrentPlayWorld (UWorld *PossiblePlayWorld=nullptr) const
 Tries to find the currently active primary Game or Play in Editor world, returning null if it is ambiguous. 更多...
 
UEngineCustomTimeStep * GetCustomTimeStep () const
 Get the custom time step that control the Engine Framerate/Timestep
 
ULocalPlayer * GetDebugLocalPlayer ()
 returns the first ULocalPlayer that should be used for debug purposes. 更多...
 
virtual ERHIFeatureLevel::Type GetDefaultWorldFeatureLevel () const
 The feature used to create new worlds, by default. 更多...
 
float GetDisplayGamma () const
 Returns the current display gamma value
 
void GetDynamicResolutionCurrentStateInfos (FDynamicResolutionStateInfos &OutInfos) const
 Queries informations about the current state dynamic resolution.
 
FORCEINLINE class IDynamicResolutionState * GetDynamicResolutionState ()
 Get's global dynamic resolution state
 
FORCEINLINE bool GetDynamicResolutionUserSetting () const
 Get the user setting for dynamic resolution.
 
template<typename TSubsystemClass >
TSubsystemClass * GetEngineSubsystem () const
 Get an Engine Subsystem of specified type
 
template<typename TSubsystemClass >
const TArray< TSubsystemClass * > & GetEngineSubsystemArray () const
 Get all Engine Subsystem of specified type, this is only necessary for interfaces that can have multiple implementations instanced at a time.
 
UEngineSubsystem * GetEngineSubsystemBase (TSubclassOf< UEngineSubsystem > SubsystemClass) const
 Get an Engine Subsystem of specified type
 
ULocalPlayer * GetFirstGamePlayer (UWorld *InWorld)
 return the first ULocalPlayer in the GamePlayers array. 更多...
 
class APlayerController * GetFirstLocalPlayerController (const UWorld *InWorld)
 Find a Local Player Controller, which may not exist at all if this is a server. 更多...
 
FColor GetFrameTimeDisplayColor (float FrameTimeMS) const
 Returns the display color for a given frame time (based on t.TargetFrameTimeThreshold and t.UnacceptableFrameTimeThreshold)
 
ULocalPlayer * GetGamePlayer (UWorld *InWorld, int32 InPlayer)
 return the ULocalPlayer with the given index. 更多...
 
const UGameUserSettings * GetGameUserSettings () const
 Returns the global instance of the game user settings class.
 
virtual TSharedPtr< class SViewport > GetGameViewportWidget () const
 Returns the GameViewport widget
 
int32 GetGlobalFunctionCallspace (UFunction *Function, UObject *FunctionTarget, FFrame *Stack)
 Called from GetFunctionCallspace on specific objects to check for authority/cosmetic function tags using global state 更多...
 
ULocalPlayer * GetLocalPlayerFromControllerId (const UGameViewportClient *InViewport, const int32 ControllerId) const
 Retrieves the LocalPlayer for the player which has the ControllerId specified 更多...
 
TArray< classULocalPlayer * >::TConstIterator GetLocalPlayerIterator (UWorld *World)
 Return a reference to the GamePlayers array.
 
FAudioDeviceHandle GetMainAudioDevice ()
 
uint32 GetMainAudioDeviceID () const
 
virtual bool GetMapBuildCancelled () const
 Returns whether or not the map build in progressed was canceled by the user.
 
virtual float GetMaxFPS () const
 Get max fps.
 
virtual float GetMaxTickRate (float DeltaTime, bool bAllowFrameRateSmoothing=true) const
 Get tick rate limiter.
 
ENetMode GetNetMode (const UWorld *World) const
 Returns the current netmode 更多...
 
int32 GetNumGamePlayers (UWorld *InWorld)
 return the number of entries in the GamePlayers array
 
virtual bool GetPropertyColorationColor (class UObject *Object, FColor &OutColor)
 Computes a color to use for property coloration for the given object. 更多...
 
const FLinearColor & GetSelectedMaterialColor () const
 Get the color to use for object selection
 
TSharedRef< IPortalServiceLocator > GetServiceLocator ()
 Get a locator for Portal services. 更多...
 
virtual int32 GetSpriteCategoryIndex (const FName &InSpriteCategory)
 Get the index of the provided sprite category 更多...
 
bool GetStatValueColoration (const FString &StatName, float Value, FColor &OutColor)
 Uses StatColorMappings to find a color for this stat's value.
 
float GetTimeBetweenGarbageCollectionPasses () const
 Returns the current desired time between garbage collection passes (not the time remaining)
 
UTimecodeProvider * GetTimecodeProvider () const
 Get the TimecodeProvider that control the Engine's Timecode.
 
UWorld * GetWorldFromContextObject (const UObject *Object, bool bChecked=true) const
 This function is deprecated
 
UWorld * GetWorldFromContextObject (const UObject *Object, EGetWorldErrorMode ErrorMode) const
 Obtain a world object pointer from an object with has a world context. 更多...
 
UWorld * GetWorldFromContextObjectChecked (const UObject *Object) const
 Obtain a world object pointer from an object with has a world context. 更多...
 
void HandleDisconnect (UWorld *InWorld, UNetDriver *NetDriver)
 The proper way to disconnect a given World and NetDriver. 更多...
 
bool HandleFlushLogCommand (const TCHAR *Cmd, FOutputDevice &Ar)
 Exec command handlers
 
virtual void HandleNetworkFailure (UWorld *World, UNetDriver *NetDriver, ENetworkFailure::Type FailureType, const FString &ErrorString)
 Notification of network error messages, allows the engine to handle the failure 更多...
 
virtual void HandleNetworkLagStateChanged (UWorld *World, UNetDriver *NetDriver, ENetworkLagState::Type LagType)
 Notification of network lag state change messages. 更多...
 
virtual void HandleTravelFailure (UWorld *InWorld, ETravelFailure::Type FailureType, const FString &ErrorString)
 Notification of server travel error messages, generally network connection related (package verification, client server handshaking, etc) allows the engine to handle the failure 更多...
 
virtual void Init (IEngineLoop *InEngineLoop)
 Initialize the game engine.
 
virtual bool IsAllowedFramerateSmoothing () const
 Whether we're allowed to do frame rate smoothing
 
virtual bool IsAutosaving () const
 
bool IsEditor ()
 
bool IsEngineStat (const FString &InName)
 Check to see if the specified stat name is a simple stat. 更多...
 
virtual bool IsSettingUpPlayWorld () const
 mostly done to check if PIE is being set up, go GWorld is going to change, and it's not really the_G_World NOTE: hope this goes away once PIE and regular game triggering are not that separate code paths
 
virtual bool IsSplitScreen (UWorld *InWorld)
 
bool IsStereoscopic3D (FViewport *InViewport=nullptr)
 
virtual void LoadMapRedrawViewports (void)
 Called to allow overloading by child engines
 
void LoadPackagesFully (UWorld *InWorld, EFullyLoadPackageType FullyLoadType, const FString &Tag)
 Loads the PerMapPackages for the given map, and adds them to the RootSet 更多...
 
void LogPerformanceCapture (UWorld *World, const FString &MapName, const FString &MatineeName, float EventTime)
 Logs performance capture for use in automation analytics 更多...
 
bool MakeSureMapNameIsValid (FString &InOutMapName)
 Makes sure map name is a long package name. 更多...
 
FSimpleMulticastDelegate & OnCustomTimeStepChanged ()
 Return custom time step changed event.
 
virtual void OnLostFocusPause (bool EnablePause)
 Pauses / un-pauses the game-play when focus of the game's window gets lost / gained. 更多...
 
virtual bool OnlyLoadEditorVisibleLevelsInPIE () const
 
FOnNetworkDDoSEscalation & OnNetworkDDoSEscalation ()
 Event triggered when network burst or DDoS is detected
 
FOnNetworkFailure & OnNetworkFailure ()
 Event triggered after a network failure of any kind has occurred
 
FOnNetworkLagStateChanged & OnNetworkLagStateChanged ()
 Event triggered after network lag is being experienced or lag has ended
 
bool OnScreenDebugMessageExists (uint64 Key)
 Retrieve the message for the given key
 
FSimpleMulticastDelegate & OnTimecodeProviderChanged ()
 Return timecode provider changed event.
 
FOnTravelFailure & OnTravelFailure ()
 Event triggered after a server travel failure of any kind has occurred
 
FWorldAddedEvent & OnWorldAdded ()
 Return the world added event.
 
FWorldDestroyedEvent & OnWorldDestroyed ()
 Return the world destroyed event.
 
void OverrideSelectedMaterialColor (const FLinearColor &OverrideColor)
 Sets an override color to use instead of the user setting 更多...
 
void ParseCommandline ()
 Called at startup, in the middle of FEngineLoop::Init. 更多...
 
void PauseDynamicResolution ()
 Pause dynamic resolution for this frame.
 
void PerformanceCapture (UWorld *World, const FString &MapName, const FString &MatineeName, float EventTime)
 Capture screenshots and performance metrics 更多...
 
void PerformGarbageCollectionAndCleanupActors ()
 Interface to allow WorldSettings to request immediate garbage collection
 
virtual void PreExit ()
 Called at shutdown, just before the exit purge. 更多...
 
virtual bool PreferToStreamLevelsInPIE () const
 
void RegisterBeginStreamingPauseRenderingDelegate (FBeginStreamingPauseDelegate *InDelegate)
 Delegate handling when streaming pause begins. 更多...
 
void RegisterEndStreamingPauseRenderingDelegate (FEndStreamingPauseDelegate *InDelegate)
 Delegate handling when streaming pause ends. 更多...
 
void ReinitializeCustomTimeStep ()
 Causes the current custom time step to be shut down and then reinitialized.
 
void ReinitializeTimecodeProvider ()
 Causes the current timecode provider to be shut down and then reinitialized.
 
void RemovePerformanceDataConsumer (TSharedPtr< IPerformanceDataConsumer > Consumer)
 Remove a previously registered performance data consumer
 
void RenderEngineStats (UWorld *World, FViewport *Viewport, FCanvas *Canvas, int32 LHSX, int32 &InOutLHSY, int32 RHSX, int32 &InOutRHSY, const FVector *ViewLocation, const FRotator *ViewRotation)
 Function to render all the simple stats 更多...
 
void RestoreSelectedMaterialColor ()
 Restores the selected material color back to the user setting
 
FORCEINLINE void ResumeDynamicResolution ()
 Resume dynamic resolution for this frame.
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
void SetAverageUnitTimes (float FrameTime, float RenderThreadTime, float GameThreadTime, float GPUFrameTime, float RHITFrameTime)
 Updates the values used to calculate the average game/render/gpu/total time
 
bool SetCustomTimeStep (UEngineCustomTimeStep *InCustomTimeStep)
 Set the custom time step that will control the Engine Framerate/Timestep. 更多...
 
FORCEINLINE void SetDynamicResolutionUserSetting (bool Enable)
 Set the user setting for dynamic resolution.
 
void SetEngineStat (UWorld *World, FCommonViewportClient *ViewportClient, const FString &InName, const bool bShow)
 Set the state of the specified stat. 更多...
 
void SetEngineStats (UWorld *World, FCommonViewportClient *ViewportClient, const TArray< FString > &InNames, const bool bShow)
 Set the state of the specified stats (note: array processed in reverse order when !bShow). 更多...
 
virtual void SetMapBuildCancelled (bool InCancelled)
 Sets the flag that states whether or not the map build was canceled. 更多...
 
virtual void SetMaxFPS (const float MaxFPS)
 Set max fps. 更多...
 
void SetSelectedMaterialColor (const FLinearColor &InSelectedMaterialColor)
 Sets the selected material color. 更多...
 
bool SetTimecodeProvider (UTimecodeProvider *InTimecodeProvider)
 Set the timecode provider that will control the Engine's timecode. 更多...
 
void SetTimeUntilNextGarbageCollection (float MinTimeUntilNextPass)
 Updates the timer (as a one-off) that is used to trigger garbage collection; this should only be used for things like performance tests, using it recklessly can dramatically increase memory usage and cost of the eventual GC. 更多...
 
bool ShouldAbsorbAuthorityOnlyEvent ()
 Returns true if the global context is client-only and authority only events should always be ignored. 更多...
 
bool ShouldAbsorbCosmeticOnlyEvent ()
 Returns true if the global context is dedicated server and cosmetic only events should always be ignored. 更多...
 
virtual bool ShouldDrawBrushWireframe (class AActor *InActor)
 Allows the editor to accept or reject the drawing of wire frame brush shapes based on mode and tool.
 
virtual bool ShouldThrottleCPUUsage () const
 
void ShutdownWorldNetDriver (UWorld *)
 Shutdown any relevant net drivers
 
virtual void SpawnServerActors (UWorld *World)
 Spawns all of the registered server actors
 
virtual void Start ()
 Start the game, separate from the initialize call to allow for post initialize configuration before the game starts.
 
virtual void StartFPSChart (const FString &Label, bool bRecordPerFrameTimes)
 Starts the FPS chart data capture (if another run is already active then this command is ignored except to change the active label). 更多...
 
virtual void StopFPSChart (const FString &MapName)
 Stops the FPS chart data capture (if no run is active then this command is ignored).
 
virtual void Tick (float DeltaSeconds, bool bIdleMode)
 Update everything.
 
void TickDeferredCommands ()
 Executes the deferred commands
 
void TickPerformanceMonitoring (float DeltaSeconds)
 Calculates information about the previous frame and passes it to all active performance data consumers. 更多...
 
virtual void UpdateRunningAverageDeltaTime (float DeltaTime, bool bAllowFrameRateSmoothing=true)
 Updates the running average delta time
 
void UpdateTimeAndHandleMaxTickRate ()
 Update FApp::CurrentTime / FApp::DeltaTime while taking into account max tick rate.
 
void UpdateTimecode ()
 Update FApp::Timecode.
 
virtual void VerifyLoadMapWorldCleanup ()
 Verify any remaining World(s) are valid after LoadMap destroys a world
 
virtual void WorldAdded (UWorld *World)
 Needs to be called when a world is added to broadcast messages.
 
virtual void WorldDestroyed (UWorld *InWorld)
 Needs to be called when a world is destroyed to broadcast messages.
 
- Public 成员函数 继承自 UObject
void AbortInsideMemberFunction () const
 Abort with a member function call at the top of the callstack, helping to ensure that most platforms will stuff this object's memory into the resulting minidump.
 
virtual bool AreNativePropertiesIdenticalTo (UObject *Other) const
 Returns whether native properties are identical to the one of the passed in component. 更多...
 
virtual void BeginDestroy ()
 Called before destroying the object. 更多...
 
virtual void BuildSubobjectMapping (UObject *OtherObject, TMap< UObject *, UObject * > &ObjectMapping) const
 Given OtherObject (which will be the same type as 'this'), recursively find any matching sub-objects from 'this' that also exist within OtherObject, and add the mappings to ObjectMapping. 更多...
 
void CallAddReferencedObjects (FReferenceCollector &Collector)
 Helper function to call AddReferencedObjects for this object's class. 更多...
 
void CallFunction (FFrame &Stack, RESULT_DECL, UFunction *Function)
 Internal VM method for executing a function
 
bool CallFunctionByNameWithArguments (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor, bool bForceCallWithNonExec=false)
 Handle calling a function by name when executed from the console or a command line
 
virtual bool CallRemoteFunction (UFunction *Function, void *Parms, struct FOutParmRec *OutParms, FFrame *Stack)
 Call the actor's function remotely 更多...
 
bool CheckDefaultSubobjects (bool bForceCheck=false) const
 Checks default sub-object assumptions. 更多...
 
void CollectDefaultSubobjects (TArray< UObject * > &OutDefaultSubobjects, bool bIncludeNestedSubobjects=false) const
 Uses the TArchiveObjectReferenceCollector to build a list of all components referenced by this object which have this object as the outer 更多...
 
bool ConditionalBeginDestroy ()
 Called before destroying the object. 更多...
 
bool ConditionalFinishDestroy ()
 Called when an object is actually destroyed, memory should never be accessed again
 
void ConditionalPostLoad ()
 PostLoad if needed.
 
void ConditionalPostLoadSubobjects (struct FObjectInstancingGraph *OuterInstanceGraph=NULL)
 Instances subobjects and components for objects being loaded from disk, if necessary. 更多...
 
 DECLARE_FUNCTION (execBreakpoint)
 Breakpoint; only observed in the editor; executing it at any other time is a NOP
 
 DECLARE_FUNCTION (execInstrumentation)
 Instrumentation event for profiling; only observed in the builds with blueprint instrumentation
 
 DECLARE_FUNCTION (execPopExecutionFlow)
 Pops a code offset from the execution flow stack and starts execution there. 更多...
 
 DECLARE_FUNCTION (execPopExecutionFlowIfNot)
 Pops a code offset from the execution flow stack and starts execution there, if a condition is not true. 更多...
 
 DECLARE_FUNCTION (execPushExecutionFlow)
 Push a code offset onto the execution flow stack for future execution. 更多...
 
 DECLARE_FUNCTION (execReturnNothing)
 failsafe for functions that return a value - returns the zero value for a property and logs that control reached the end of a non-void function
 
 DECLARE_FUNCTION (execTracepoint)
 Tracepoint; only observed in the editor; executing it at any other time is a NOP
 
 DECLARE_FUNCTION (ProcessInternal)
 Internal function call processing. 更多...
 
void DestroyNonNativeProperties ()
 Destroy properties that won't be destroyed by the native destructor
 
void ExecuteUbergraph (int32 EntryPoint)
 Execute the ubergraph from a specific entry point
 
virtual void ExportCustomProperties (FOutputDevice &Out, uint32 Indent)
 Exports the property values for the specified object as text to the output device. 更多...
 
UFunction * FindFunction (FName InName) const
 Returns a UFunction with the specified name, wrapper for UClass::FindFunctionByName()
 
UFunction * FindFunctionChecked (FName InName) const
 Version of FindFunction() that will assert if the function was not found
 
virtual void FinishDestroy ()
 Called to finish destroying the object. 更多...
 
UObject * GetArchetype () const
 Return the template this object is based on. 更多...
 
void GetArchetypeInstances (TArray< UObject * > &Instances)
 Builds a list of objects which have this object in their archetype chain. 更多...
 
virtual void GetAssetRegistryTags (TArray< FAssetRegistryTag > &OutTags) const
 Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects 更多...
 
virtual const TCHAR * GetConfigOverridePlatform () const
 Returns the override config hierarchy platform (if NDAd platforms need defaults to not be in Base*.ini but still want editor to load them)
 
FString GetDefaultConfigFilename () const
 Get the default config filename for the specified UObject
 
virtual FString GetDesc ()
 Return a one line description of an object for viewing in the thumbnail view of the generic browser
 
FString GetDetailedInfo () const
 This will return detail info about this specific object. 更多...
 
virtual FName GetExporterName (void)
 Returns the name of the exporter factory used to export this object Used when multiple factories have the same extension
 
virtual int32 GetFunctionCallspace (UFunction *Function, FFrame *Stack)
 Return the space this function should be called. 更多...
 
FString GetGlobalUserConfigFilename () const
 Get the global user override config filename for the specified UObject
 
virtual void GetLifetimeReplicatedProps (TArray< class FLifetimeProperty > &OutLifetimeProps) const
 Returns properties that are replicated for the lifetime of the actor channel
 
virtual bool GetNativePropertyValues (TMap< FString, FString > &out_PropertyValues, uint32 ExportFlags=0) const
 Callback for retrieving a textual representation of natively serialized properties. 更多...
 
virtual int32 GetNetPushIdDynamic () const
 Should only ever be used by internal systems.
 
virtual void GetPreloadDependencies (TArray< UObject * > &OutDeps)
 Called during cooking. 更多...
 
virtual void GetPrestreamPackages (TArray< UObject * > &OutPrestream)
 Called during cooking. 更多...
 
virtual FPrimaryAssetId GetPrimaryAssetId () const
 Returns an Type:Name pair representing the PrimaryAssetId for this object. 更多...
 
FString GetProjectUserConfigFilename () const
 Get the project user override config filename for the specified UObject
 
SIZE_T GetResourceSizeBytes (EResourceSizeMode::Type Mode)
 Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the simple version which just returns the total number of bytes used by this object. 更多...
 
virtual void GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize)
 Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). 更多...
 
virtual FRestoreForUObjectOverwrite * GetRestoreForUObjectOverwrite ()
 Save information for StaticAllocateObject in the case of overwriting an existing object. 更多...
 
virtual UScriptStruct * GetSparseClassDataStruct () const
 Return the UStruct corresponding to the sidecar data structure that stores data that is constant for all instances of this class.
 
virtual void GetSubobjectsWithStableNamesForNetworking (TArray< UObject * > &ObjList)
 Returns a list of sub-objects that have stable names for networking
 
template<class T >
FORCEINLINE bool Implements () const
 Returns true if this object implements the interface T, false otherwise.
 
template<class T >
bool Implements () const
 Returns true if this object implements the interface T, false otherwise.
 
virtual void ImportCustomProperties (const TCHAR *SourceText, FFeedbackContext *Warn)
 Exports the property values for the specified object as text to the output device. 更多...
 
void InstanceSubobjectTemplates (struct FObjectInstancingGraph *InstanceGraph=NULL)
 Wrapper for calling UClass::InstanceSubobjectTemplates() for this object.
 
virtual bool IsAsset () const
 Returns true if this object is considered an asset.
 
bool IsBasedOnArchetype (const UObject *const SomeObject) const
 Determine if this object has SomeObject in its archetype chain.
 
virtual bool IsDestructionThreadSafe () const
 Called during garbage collection to determine if an object can have its destructor called on a worker thread. 更多...
 
virtual bool IsEditorOnly () const
 Called during saving to determine if the object is forced to be editor only or not 更多...
 
virtual bool IsFullNameStableForNetworking () const
 IsFullNameStableForNetworking means an object can be referred to its full path name over the network
 
bool IsInBlueprint () const
 Returns whether this object is contained in or part of a blueprint object
 
virtual bool IsLocalizedResource () const
 Returns true if this object is considered a localized resource.
 
virtual bool IsNameStableForNetworking () const
 IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network
 
virtual bool IsPostLoadThreadSafe () const
 Called during async load to determine if PostLoad can be called on the loading thread. 更多...
 
virtual bool IsReadyForAsyncPostLoad () const
 Called before calling PostLoad() in FAsyncPackage::PostLoadObjects(). 更多...
 
virtual bool IsReadyForFinishDestroy ()
 Called to check if the object is ready for FinishDestroy. 更多...
 
virtual bool IsSafeForRootSet () const
 Returns true if this object is safe to add to the root set.
 
bool IsSelected () const
 Test the selection state of a UObject 更多...
 
virtual bool IsSupportedForNetworking () const
 IsSupportedForNetworking means an object can be referenced over the network
 
void LoadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL)
 Imports property values from an .ini file. 更多...
 
virtual void MarkAsEditorOnlySubobject ()
 Called during subobject creation to mark this component as editor only, which causes it to get stripped in packaged builds
 
FORCEINLINE bool Modify (bool bAlwaysMarkDirty=true)
 Note that the object will be modified. 更多...
 
virtual bool NeedsLoadForClient () const
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForEditorGame () const
 Called during saving to include this object in client/servers running in editor builds, even if they wouldn't normally be. 更多...
 
virtual bool NeedsLoadForServer () const
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForTargetPlatform (const class ITargetPlatform *TargetPlatform) const
 Called during saving to determine the load flags to save with the object. 更多...
 
void OutputReferencers (FOutputDevice &Ar, FReferencerInformationList *Referencers=NULL)
 Outputs a string to an arbitrary output device, describing the list of objects which are holding references to this one. 更多...
 
virtual void OverridePerObjectConfigSection (FString &SectionName)
 Allows PerObjectConfig classes, to override the ini section name used for the PerObjectConfig object. 更多...
 
void ParseParms (const TCHAR *Parms)
 Import an object from a file.
 
virtual void PostCDOContruct ()
 Called after the C++ constructor has run on the CDO for a class. 更多...
 
virtual void PostDuplicate (bool bDuplicateForPIE)
 Called after duplication & serialization and before PostLoad. 更多...
 
virtual void PostEditImport ()
 Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization
 
virtual void PostInitProperties ()
 Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
 
virtual void PostInterpChange (FProperty *PropertyThatChanged)
 This is called when property is modified by InterpPropertyTracks 更多...
 
virtual void PostLoad ()
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void PostLoadSubobjects (FObjectInstancingGraph *OuterInstanceGraph)
 Instances components for objects being loaded from disk, if necessary. 更多...
 
virtual void PostNetReceive ()
 Called right after receiving a bunch
 
virtual void PostReloadConfig (class FProperty *PropertyThatWasLoaded)
 Called from ReloadConfig after the object has reloaded its configuration data.
 
virtual void PostRename (UObject *OldOuter, const FName OldName)
 Called at the end of Rename(), but only if the rename was actually carried out
 
virtual void PostRepNotifies ()
 Called right after calling all OnRep notifies (called even when there are no notifies)
 
virtual void PostSaveRoot (bool bCleanupIsRequired)
 Called from within SavePackage on the passed in base/root object. 更多...
 
virtual void PreDestroyFromReplication ()
 Called right before being marked for destruction due to network replication
 
virtual void PreDuplicate (FObjectDuplicationParameters &DupParams)
 Called before duplication. 更多...
 
virtual void PreNetReceive ()
 Called right before receiving a bunch
 
virtual void PreSave (const class ITargetPlatform *TargetPlatform)
 Presave function. 更多...
 
virtual bool PreSaveRoot (const TCHAR *Filename)
 Called from within SavePackage on the passed in base/root object. 更多...
 
virtual bool ProcessConsoleExec (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor)
 This function handles a console exec sent to the object; it is virtual so 'nexus' objects like a player controller can reroute the command to several different objects.
 
virtual void ProcessEvent (UFunction *Function, void *Parms)
 Called by VM to execute a UFunction with a filled in UStruct of parameters
 
virtual UClass * RegenerateClass (UClass *ClassToRegenerate, UObject *PreviousCDO)
 Called on the target when a class is loaded with ClassGeneratedBy is loaded. 更多...
 
void ReinitializeProperties (UObject *SourceObject=NULL, struct FObjectInstancingGraph *InstanceGraph=NULL)
 Wrapper function for InitProperties() which handles safely tearing down this object before re-initializing it from the specified source object. 更多...
 
void ReloadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL)
 Wrapper method for LoadConfig that is used when reloading the config data for objects at runtime which have already loaded their config data at least once. 更多...
 
virtual bool Rename (const TCHAR *NewName=nullptr, UObject *NewOuter=nullptr, ERenameFlags Flags=REN_None)
 Rename this object to a unique name, or change its outer. 更多...
 
void RetrieveReferencers (TArray< FReferencerInformation > *OutInternalReferencers, TArray< FReferencerInformation > *OutExternalReferencers)
 Called by OutputReferencers() to get the internal list of referencers to write
 
void SaveConfig (uint64 Flags=CPF_Config, const TCHAR *Filename=NULL, FConfigCacheIni *Config=GConfig, bool bAllowCopyToDefaultObject=true)
 Save configuration out to ini files 更多...
 
virtual void Serialize (FArchive &Ar)
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
void SerializeScriptProperties (FArchive &Ar) const
 Serializes the script property data located at Data. 更多...
 
void SerializeScriptProperties (FStructuredArchive::FSlot Slot) const
 Serializes the script property data located at Data. 更多...
 
void SetLinker (FLinkerLoad *LinkerLoad, int32 LinkerIndex, bool bShouldDetachExisting=true)
 Changes the linker and linker index to the passed in one. 更多...
 
virtual void ShutdownAfterError ()
 After a critical error, perform any mission-critical cleanup, such as restoring the video mode orreleasing hardware resources.
 
void SkipFunction (FFrame &Stack, RESULT_DECL, UFunction *Function)
 advances Stack's code past the parameters to the given Function and if the function has a return value, copies the zero value for that property to the memory for the return value 更多...
 
virtual void TagSubobjects (EObjectFlags NewFlags)
 Tags objects that are part of the same asset with the specified object flag, used for GC checking 更多...
 
void UpdateDefaultConfigFile (const FString &SpecificFileLocation="")
 Saves just the section(s) for this class into the default ini file for the class (with just the changes from base)
 
void UpdateGlobalUserConfigFile ()
 Saves just the section(s) for this class into the global user ini file for the class (with just the changes from base)
 
void UpdateProjectUserConfigFile ()
 Saves just the section(s) for this class into the project user ini file for the class (with just the changes from base)
 
void UpdateSinglePropertyInConfigFile (const FProperty *InProperty, const FString &InConfigIniName)
 Saves just the property into the global user ini file for the class (with just the changes from base)
 
- Public 成员函数 继承自 UObjectBaseUtility
void AddToCluster (UObjectBaseUtility *ClusterRootOrObjectFromCluster, bool bAddAsMutableObject=false)
 Adds this objects to a GC cluster that already exists 更多...
 
FORCEINLINE void AddToRoot ()
 Add an object to the root set. 更多...
 
FORCEINLINE void AppendName (FString &ResultString) const
 Optimized version of GetName that appends to an existing string
 
FORCEINLINE bool AtomicallyClearInternalFlags (EInternalObjectFlags FlagsToClear) const
 Atomically clears passed in internal flags. 更多...
 
virtual bool CanBeClusterRoot () const
 Called after load to determine if the object can be a cluster root 更多...
 
virtual bool CanBeInCluster () const
 Called during cluster construction if the object can be added to a cluster 更多...
 
FORCEINLINE void ClearFlags (EObjectFlags NewFlags)
 Clears subset of flags for a specific object
 
FORCEINLINE void ClearInternalFlags (EInternalObjectFlags FlagsToClear) const
 Clears passed in internal flags. 更多...
 
FORCEINLINE void ClearPendingKill ()
 Unmarks this object as PendingKill.
 
virtual void CreateCluster ()
 Called after PostLoad to create UObject cluster
 
void DetachExternalPackage ()
 Utility function to temporarily detach the object external package, if any GetPackage will report the outer's package once detached
 
const UClass * FindNearestCommonBaseClass (const UClass *TestClass) const
 Finds the most-derived class which is a parent of both TestClass and this object's class. 更多...
 
FORCEINLINE EObjectMark GetAllMarks () const
 Returns all of the object marks on a specific object 更多...
 
FString GetFullGroupName (bool bStartWithOuter) const
 Walks up the chain of packages until it reaches the top level, which it ignores. 更多...
 
void GetFullName (const UObject *StopOuter, FString &ResultString, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const
 Version of GetFullName() that eliminates unnecessary copies.
 
FString GetFullName (const UObject *StopOuter=NULL, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const
 Returns the fully qualified pathname for this object as well as the name of the class, in the format: 'ClassName Outermost[.Outer].Name'. 更多...
 
void * GetInterfaceAddress (UClass *InterfaceClass)
 Returns a pointer to this object safely converted to a pointer of the specified interface class. 更多...
 
FORCEINLINE EInternalObjectFlags GetInternalFlags () const
 Gets internal flags. 更多...
 
class FLinkerLoad * GetLinker () const
 Returns the linker for this object. 更多...
 
int32 GetLinkerCustomVersion (FGuid CustomVersionKey) const
 Returns the custom version of the linker for this object corresponding to the given custom version key. 更多...
 
int32 GetLinkerIndex () const
 Returns this object's LinkerIndex. 更多...
 
int32 GetLinkerLicenseeUE4Version () const
 Returns the licensee version of the linker for this object. 更多...
 
int32 GetLinkerUE4Version () const
 Returns the UE4 version of the linker for this object. 更多...
 
FORCEINLINE EObjectFlags GetMaskedFlags (EObjectFlags Mask=RF_AllFlags) const
 Returns object flags that are both in the mask and set on the object. 更多...
 
FORCEINLINE FString GetName () const
 Returns the name of this object (with no path information) 更多...
 
FORCEINLINE void GetName (FString &ResultString) const
 Optimized version of GetName that overwrites an existing string
 
void * GetNativeInterfaceAddress (UClass *InterfaceClass)
 Returns a pointer to the I* native interface object that this object implements. 更多...
 
const void * GetNativeInterfaceAddress (UClass *InterfaceClass) const
 Returns a pointer to the const I* native interface object that this object implements. 更多...
 
UPackage * GetOutermost () const
 Legacy function, has the same behavior as GetPackage use GetPackage instead. 更多...
 
UObject * GetOutermostObject () const
 Walks up the list of outers until it finds the top-level one that isn't a package. 更多...
 
UPackage * GetPackage () const
 Walks up the list of outers until it finds a package directly associated with the object. 更多...
 
void GetPathName (const UObject *StopOuter, FString &ResultString) const
 Versions of GetPathName() that eliminates unnecessary copies and allocations.
 
FString GetPathName (const UObject *StopOuter=NULL) const
 Returns the fully qualified pathname for this object, in the format: 'Outermost[.Outer].Name' 更多...
 
FORCEINLINE TStatId GetStatID (bool bForDeferredUse=false) const
 Returns the stat ID of the object, used for profiling. 更多...
 
template<typename T >
T * GetTypedOuter () const
 Traverses the outer chain searching for the next object of a certain type. 更多...
 
UObject * GetTypedOuter (UClass *Target) const
 Traverses the outer chain searching for the next object of a certain type. 更多...
 
FORCEINLINE bool HasAllFlags (EObjectFlags FlagsToCheck) const
 Used to safely check whether all of the passed in flags are set. 更多...
 
FORCEINLINE bool HasAllMarks (EObjectMark Marks) const
 Tests an object for having ALL of a set of marks 更多...
 
FORCEINLINE bool HasAnyFlags (EObjectFlags FlagsToCheck) const
 Used to safely check whether any of the passed in flags are set. 更多...
 
FORCEINLINE bool HasAnyInternalFlags (EInternalObjectFlags FlagsToCheck) const
 Used to safely check whether any of the passed in internal flags are set. 更多...
 
FORCEINLINE bool HasAnyMarks (EObjectMark Marks) const
 Tests an object for having ANY of a set of marks 更多...
 
template<class T >
bool IsA () const
 Returns true if this object is of the template type.
 
template<typename OtherClassType >
FORCEINLINE bool IsA (OtherClassType SomeBase) const
 Returns true if this object is of the specified type.
 
bool IsDefaultSubobject () const
 Returns whether this component was instanced from a component/subobject template, or if it is a component/subobject template. 更多...
 
bool IsIn (const UObject *SomeOuter) const
 Return the dispatch to IsInOuter or IsInPackage depending on SomeOuter's class. 更多...
 
bool IsIn (const UPackage *SomePackage) const
 Overload to determine if an object is in the specified package which can now be different than its outer chain. 更多...
 
bool IsInA (const UClass *SomeBaseClass) const
 Find out if this object is inside (has an outer) that is of the specified class 更多...
 
bool IsInOuter (const UObject *SomeOuter) const
 Returns true if the object is contained in the specified outer.
 
bool IsInPackage (const UPackage *SomePackage) const
 Returns true if the object is contained in the specified package.
 
FORCEINLINE bool IsNative () const
 Checks if the object is native.
 
FORCEINLINE bool IsPendingKill () const
 Checks the PendingKill flag to see if it is dead but memory still valid
 
FORCEINLINE bool IsPendingKillOrUnreachable () const
 Checks if the object is pending kill or unreachable.
 
FORCEINLINE bool IsRooted () const
 Returns true if this object is explicitly rooted 更多...
 
bool IsTemplate (EObjectFlags TemplateTypes=RF_ArchetypeObject|RF_ClassDefaultObject) const
 Determines whether this object is a template object 更多...
 
FORCEINLINE bool IsUnreachable () const
 Checks if the object is unreachable.
 
FORCEINLINE void Mark (EObjectMark Marks) const
 Adds marks to an object 更多...
 
bool MarkPackageDirty () const
 Finds the outermost package and marks it dirty. 更多...
 
FORCEINLINE void MarkPendingKill ()
 Marks this object as RF_PendingKill.
 
virtual void OnClusterMarkedAsPendingKill ()
 Called during Garbage Collection to perform additional cleanup when the cluster is about to be destroyed due to PendingKill flag being set on it.
 
FORCEINLINE bool operator< (const UObjectBaseUtility &Other) const
 Overloaded < operator. 更多...
 
void ReattachExternalPackage ()
 Utility function to reattach the object external package, if any GetPackage will report the object external package if set after this call
 
FORCEINLINE void RemoveFromRoot ()
 Remove an object from the root set.
 
bool RootPackageHasAnyFlags (uint32 CheckFlagMask) const
 Checks whether this object's top-most package has any of the specified flags 更多...
 
FORCEINLINE void SetFlags (EObjectFlags NewFlags)
 Modifies object flags for a specific object
 
FORCEINLINE void SetInternalFlags (EInternalObjectFlags FlagsToSet) const
 Clears passed in internal flags. 更多...
 
FORCEINLINE bool ThisThreadAtomicallyClearedRFUnreachable ()
 Atomically clear the unreachable flag 更多...
 
FORCEINLINE void UnMark (EObjectMark Marks) const
 Removes marks from and object 更多...
 
- Public 成员函数 继承自 UObjectBase
FORCENOINLINE void AtomicallyClearFlags (EObjectFlags FlagsToClear)
 Atomically clears the specified flags. 更多...
 
FORCENOINLINE void AtomicallySetFlags (EObjectFlags FlagsToAdd)
 Atomically adds the specified flags. 更多...
 
FORCEINLINE UClass * GetClass () const
 Returns the UClass that defines the fields of this object
 
UPackage * GetExternalPackage () const
 Returns the external UPackage associated with this object, if any
 
UPackage * GetExternalPackageInternal () const
 Returns the external UPackage for this object, if any, NOT THREAD SAFE, used by internal gc reference collecting.
 
FORCEINLINE EObjectFlags GetFlags () const
 Retrieve the object flags directly 更多...
 
FORCEINLINE FName GetFName () const
 Returns the logical name of this object
 
FORCEINLINE UObject * GetOuter () const
 Returns the UObject this object resides in
 
FORCEINLINE uint32 GetUniqueID () const
 Returns the unique ID of the object...these are reused so it is only unique while the object is alive. 更多...
 
bool IsValidLowLevel () const
 Checks to see if the object appears to be valid 更多...
 
bool IsValidLowLevelFast (bool bRecursive=true) const
 Faster version of IsValidLowLevel. 更多...
 
void SetExternalPackage (UPackage *InPackage)
 Associate an external package directly to this object.
 
 UObjectBase (UClass *InClass, EObjectFlags InFlags, EInternalObjectFlags InInternalFlags, UObject *InOuter, FName InName)
 Constructor used by StaticAllocateObject 更多...
 
virtual ~UObjectBase ()
 Final destructor, removes the object from the object array, and indirectly, from any annotations
 

静态 Public 成员函数

static class UFont * GetAdditionalFont (int32 AdditionalFontIndex)
 Gets the specified additional font. 更多...
 
static class UFont * GetLargeFont ()
 Gets the engine's default large font. 更多...
 
static class UFont * GetMediumFont ()
 Gets the engine's default medium font. 更多...
 
static FGuid GetPackageGuid (FName PackageName, bool bForPIE)
 Looks up the GUID of a package on disk. 更多...
 
static class UFont * GetSmallFont ()
 Gets the engine's default small font 更多...
 
static class UFont * GetSubtitleFont ()
 Gets the engine's default subtitle font. 更多...
 
static class UFont * GetTinyFont ()
 Gets the engine's default tiny font. 更多...
 
static void TrimMemory ()
 Attempts to reclaim any idle memory by performing a garbage collection and broadcasting FCoreDelegates::OnMemoryTrim. 更多...
 
- 静态 Public 成员函数 继承自 UObject
static void AddReferencedObjects (UObject *InThis, FReferenceCollector &Collector)
 Callback used to allow object register its direct object references that are not already covered by the token stream. 更多...
 
static bool CanCreateInCurrentContext (UObject *Template)
 Determines if you can create an object from the supplied template in the current context (editor, client only, dedicated server, game/listen) This calls NeedsLoadForClient & NeedsLoadForServer
 
static UObject * GetArchetypeFromRequiredInfo (const UClass *Class, const UObject *Outer, FName Name, EObjectFlags ObjectFlags)
 Return the template that an object with this class, outer and name would be 更多...
 
static const FName & SourceFileTagName ()
 Get the common tag name used for all asset source file import paths
 
static void UpdateClassesExcludedFromDedicatedClient (const TArray< FString > &InClassNames, const TArray< FString > &InModulesNames)
 Update the list of classes that we should exclude from dedicated client builds
 
static void UpdateClassesExcludedFromDedicatedServer (const TArray< FString > &InClassNames, const TArray< FString > &InModulesNames)
 Update the list of classes that we should exclude from dedicated server builds
 
- 静态 Public 成员函数 继承自 UObjectBase
static void EmitBaseReferences (UClass *RootClass)
 Emit GC tokens for UObjectBase, this might be UObject::StaticClass or Default__Class
 
static FString RemoveClassPrefix (const TCHAR *ClassName)
 Removes the class prefix from the given string
 

Public 属性

TArray< FGameNameRedirect > ActiveGameNameRedirects
 Deprecated rules for redirecting renamed objects, replaced by the CoreRedirects system
 
TWeakObjectPtr< AMatineeActor > ActiveMatinee
 The "outermost" active matinee, if any.
 
TArray< FString > AdditionalFontNames
 Sets additional fonts that will be loaded at startup and available using GetAdditionalFont.
 
FSoftClassPath AIControllerClassName
 Sets the class to be used as the default AIController class for pawns.
 
class UMaterial * ArrowMaterial
 Material that 'fakes' lighting, used for arrows, widgets.
 
FSoftObjectPath ArrowMaterialName
 Path of the material that 'fakes' lighting, used for arrows, widgets.
 
class UMaterialInstanceDynamic * ArrowMaterialYellow
 Arrow material instance with yellow color.
 
class UAssetManager * AssetManager
 A UObject spawned at initialization time to handle runtime asset loading and management
 
FSoftClassPath AssetManagerClassName
 Sets the class to spawn as the global AssetManager, configurable per game. 更多...
 
FSoftClassPath AvoidanceManagerClassName
 Sets the AvoidanceManager class, which can be overridden to change AI crowd behavior.
 
uint32 bAllowMatureLanguage:1
 Whether to play mature language sound nodes
 
uint32 bAllowMultiThreadedAnimationUpdate:1
 Controls whether by default we allow anim blueprint graph updates to be performed on non-game threads. 更多...
 
uint32 bCheckForMultiplePawnsSpawnedInAFrame:1
 Whether we should check for more than N pawns spawning in a single frame. 更多...
 
uint32 bDisableAILogging:1
 determines whether AI logging should be processed or not
 
uint32 bEnableEditorPSysRealtimeLOD:1
 Controls whether cascade particle system LODs are updated in real time, or use the set value
 
uint32 bEnableOnScreenDebugMessages:1
 If true, then disable OnScreenDebug messages. 更多...
 
uint32 bEnableOnScreenDebugMessagesDisplay:1
 If true, then disable the display of OnScreenDebug messages (used when running)
 
uint32 bEnableVisualLogRecordingOnStart
 If true, the visual logger will start recording as soon as the engine starts
 
uint32 bForceDisableFrameRateSmoothing: 1
 Hook for external systems to transiently and forcibly disable framerate smoothing without stomping the original setting.
 
bool bGenerateDefaultTimecode
 Generate a default timecode from the computer clock when there is no timecode provider. 更多...
 
uint32 bLockReadOnlyLevels:1
 true if the the user cannot modify levels that are read only.
 
class UTexture2D * BlueNoiseTexture
 Tiled blue-noise texture
 
FSoftObjectPath BlueNoiseTextureName
 Path of the tiled blue-noise texture
 
uint32 bOptimizeAnimBlueprintMemberVariableAccess:1
 Controls whether anim blueprint nodes that access member variables of their class directly should use the optimized path that avoids a thunk to the Blueprint VM. 更多...
 
uint32 bPauseOnLossOfFocus:1
 Whether to pause the game if focus is lost.
 
uint32 bRenderLightMapDensityGrayscale:1
 If true, then render gray scale density.
 
uint32 bShouldGenerateLowQualityLightmaps_DEPRECATED:1
 Whether or not the LQ lightmaps should be generated during lighting rebuilds. 更多...
 
uint32 bSmoothFrameRate:1
 Whether to enable framerate smoothing.
 
float BSPSelectionHighlightIntensity
 Used to alter the intensity level of the selection highlight on selected BSP surfaces
 
uint32 bStartedLoadMapMovie:1
 true if the loading movie was started during LoadMap().
 
uint32 bSubtitlesEnabled:1
 Flag for completely disabling subtitles for localized sounds.
 
uint32 bSubtitlesForcedOff:1
 Flag for forcibly disabling subtitles even if you try to turn them back on they will be off
 
uint32 bSuppressMapWarnings:1
 If true, then skip drawing map warnings on screen even in non (UE_BUILD_SHIPPING || UE_BUILD_TEST) builds
 
uint32 bUseFixedFrameRate: 1
 Whether to use a fixed framerate.
 
float CameraRotationThreshold
 camera rotation (deg) beyond which occlusion queries are ignored from previous frame (because they are likely not valid)
 
float CameraTranslationThreshold
 camera movement beyond which occlusion queries are ignored from previous frame (because they are likely not valid)
 
FSoftClassPath ConsoleClassName
 Sets the class to use for the game console summoned with ~
 
class UMaterial * ConstraintLimitMaterial
 Material used to render constraint limits
 
FSoftClassPath CustomTimeStepClassName
 Override how the Engine process the Framerate/Timestep. 更多...
 
FSoftObjectPath DebugEditorMaterialName
 A material used to render debug opaque material. 更多...
 
class UMaterial * DebugMeshMaterial
 A material used to render debug meshes.
 
FSoftObjectPath DebugMeshMaterialName
 Path of the default material for debug mesh
 
class UTexture2D * DefaultBloomKernelTexture
 Texture used to bloom when using FFT, mimics characteristic bloom produced in a camera from a signle bright source
 
FSoftObjectPath DefaultBloomKernelTextureName
 Path of the texture used to bloom when using FFT, mimics characteristic bloom produced in a camera from a signle bright source
 
FSoftClassPath DefaultBlueprintBaseClassName
 Sets the base class to use for new blueprints created in the editor, configurable on a per-game basis
 
class UTexture2D * DefaultBokehTexture
 Texture used to blur out of focus content, mimics the Bokeh shape of actual cameras
 
FSoftObjectPath DefaultBokehTextureName
 Path of the texture used to blur out of focus content, mimics the Bokeh shape of actual cameras
 
class UTexture2D * DefaultBSPVertexTexture
 Texture used to render a vertex in the editor
 
FSoftObjectPath DefaultBSPVertexTextureName
 Path of the texture used to render a vertex in the editor
 
class UTexture * DefaultDiffuseTexture
 A global default diffuse texture.
 
FSoftObjectPath DefaultDiffuseTextureName
 Path of the global default diffuse texture.
 
class UPhysicalMaterial * DefaultPhysMaterial
 PhysicalMaterial to use if none is defined for a particular object.
 
FSoftObjectPath DefaultPhysMaterialName
 Path of the PhysicalMaterial to use if none is defined for a particular object.
 
class UTexture2D * DefaultTexture
 A global default texture.
 
FSoftObjectPath DefaultTextureName
 Path of the global default texture that is used when no texture is specified.
 
TArray< FString > DeferredCommands
 Array of deferred command strings/ execs that get executed at the end of the frame
 
float DisplayGamma
 Current display gamma setting
 
class UMaterial * EmissiveMeshMaterial
 A material used to render emissive meshes (e.g. 更多...
 
FSoftObjectPath EmissiveMeshMaterialName
 Path of the default material for emissive mesh
 
class IEngineLoop * EngineLoop
 Engine loop, used for callbacks from the engine module into launch.
 
TSharedPtr< class IEyeTracker, ESPMode::ThreadSafe > EyeTrackingDevice
 Reference to the HMD device that is attached, if any
 
float FixedFrameRate
 The fixed framerate to use.
 
FDirectoryPath GameScreenshotSaveDirectory
 The save directory for newly created screenshots
 
UObject * GameSingleton
 A UObject spawned at initialization time to handle game-specific data
 
FSoftClassPath GameSingletonClassName
 Sets the class for a global object spawned at startup to handle game-specific data. 更多...
 
class UGameUserSettings * GameUserSettings
 Global instance of the user game settings
 
FSoftClassPath GameUserSettingsClassName
 Sets the GameUserSettings class, which can be overridden to support game-specific options for Graphics/Sound/Gameplay.
 
class UGameViewportClient * GameViewport
 The view port representing the current game instance. 更多...
 
FSoftClassPath GameViewportClientClassName
 Sets the class to use for the game viewport client, which can be overridden to change game-specific input and display behavior.
 
float GenerateDefaultTimecodeFrameDelay
 Number of frames to subtract from generated default timecode.
 
FFrameRate GenerateDefaultTimecodeFrameRate
 When generating a default timecode (bGenerateDefaultTimecode is true and no timecode provider is set) at which frame rate it should be generated (number of frames).
 
class UTexture2D * HighFrequencyNoiseTexture
 Texture used to get random image grain values for post processing
 
FSoftObjectPath HighFrequencyNoiseTextureName
 Path of the texture used to get random image grain values for post processing
 
TArray< FLinearColor > HLODColorationColors
 The colors used to render LOD coloration.
 
float IdealLightMapDensity
 Ideal lightmap density value for coloring.
 
class UMaterial * InvalidLightmapSettingsMaterial
 Material that renders a message about lightmap settings being invalid.
 
FSoftObjectPath InvalidLightmapSettingsMaterialName
 Path of the material that renders a message about lightmap settings being invalid.
 
FSoftObjectPath LargeFontName
 Sets the font used for large engine text
 
class UMaterial * LevelColorationLitMaterial
 Material used for visualizing level membership in lit view port modes.
 
FString LevelColorationLitMaterialName
 Path of the material used for visualizing level membership in lit view port modes.
 
class UMaterial * LevelColorationUnlitMaterial
 Material used for visualizing level membership in unlit view port modes.
 
FString LevelColorationUnlitMaterialName
 Path of the material used for visualizing level membership in unlit view port modes.
 
FSoftClassPath LevelScriptActorClassName
 Sets the Level Script Actor class, which can be overridden to allow game-specific behavior in per-map blueprint scripting
 
TArray< FLinearColor > LightComplexityColors
 The colors used to render light complexity.
 
FLinearColor LightingOnlyBrightness
 Color used for the lighting only render mode
 
class UMaterial * LightingTexelDensityMaterial
 Material used for visualizing lighting only w/ lightmap texel density.
 
FString LightingTexelDensityName
 Path of the material used for visualizing lighting only w/ lightmap texel density.
 
FLinearColor LightMapDensitySelectedColor
 The color to render selected objects in for LightMap Density view mode.
 
class UTexture2D * LightMapDensityTexture
 Texture used to display LightMapDensity
 
FSoftObjectPath LightMapDensityTextureName
 Path of the texture used to display LightMapDensity
 
FLinearColor LightMapDensityVertexMappedColor
 The color to render vertex mapped objects in for LightMap Density view mode.
 
FSoftClassPath LocalPlayerClassName
 Sets the class to use for local players, which can be overridden to store game-specific information for a local player.
 
TArray< FLinearColor > LODColorationColors
 The colors used to render LOD coloration.
 
int32 MaximumLoopIterationCount
 Script maximum loop iteration count used as a threshold to warn users about script execution runaway
 
float MaxLightMapDensity
 Maximum lightmap density value for coloring.
 
float MaxOcclusionPixelsFraction
 Max screen pixel fraction where retesting when unoccluded is worth the GPU time.
 
int32 MaxParticleResize
 The maximum allowed size to a ParticleEmitterInstance::Resize call. 更多...
 
int32 MaxParticleResizeWarn
 If the resize request is larger than this, spew out a warning to the log
 
float MaxPixelShaderAdditiveComplexityCount
 Complexity limits for the various complexity view mode combinations. 更多...
 
FSoftObjectPath MediumFontName
 Sets the font used for medium engine text
 
float MinDesiredFrameRate
 Minimum desired framerate setting, below this frame rate visual detail may be lowered
 
class UTexture2D * MiniFontTexture
 Texture used to do font rendering in shaders
 
FSoftObjectPath MiniFontTextureName
 Path of the texture used to do font rendering in shaders
 
float MinLightMapDensity
 Minimum lightmap density value for coloring.
 
TSubclassOf< class UNavigationSystemBase > NavigationSystemClass
 Sets the class to use for NavigationSystem, which can be overridden to change game-specific navigation/AI behavior.
 
FSoftClassPath NavigationSystemConfigClassName
 Sets the Navigation System Config class, which can be overridden to change game-specific navigation/AI behavior.
 
float NearClipPlane
 The distance of the camera's near clipping plane.
 
float NetClientTicksPerSecond
 Number of times to tick each client per second
 
TArray< FNetDriverDefinition > NetDriverDefinitions
 A list of named UNetDriver definitions
 
float NetErrorLogInterval
 Amount of time in seconds between network error logging
 
int32 NumPawnsAllowedToBeSpawnedInAFrame
 If bCheckForMultiplePawnsSpawnedInAFrame==true, then we will check to see that no more than this number of pawns are spawned in a frame.
 
FEngineHitchDetectedDelegate OnHitchDetectedDelegate
 Delegate called when FPS charting detects a hitch (it is not triggered if there are no active performance data consumers).
 
FString ParticleEventManagerClassPath
 Sets the class to use to spawn a ParticleEventManager that can handle game-specific particle system behavior
 
TArray< struct FDropNoteInfo > PendingDroppedNotes
 List of notes to place during Play in Editor
 
FSoftClassPath PhysicsCollisionHandlerClassName
 Sets the PhysicsCollisionHandler class to use by default, which can be overridden to change game-specific behavior when objects collide using physics.
 
FPostRenderDelegate PostRenderDelegate
 Delegate called just after to rendering.
 
class UTexture2D * PreIntegratedSkinBRDFTexture
 Texture used for pre-integrated skin shading
 
FSoftObjectPath PreIntegratedSkinBRDFTextureName
 Path of the texture used for pre-integrated skin shading
 
FPreRenderDelegate PreRenderDelegate
 Delegate called just prior to rendering.
 
class UMaterial * PreviewShadowsIndicatorMaterial
 Material that renders a message about preview shadows being used.
 
FSoftObjectPath PreviewShadowsIndicatorMaterialName
 Path of the material that renders a message about preview shadows being used.
 
float PrimitiveProbablyVisibleTime
 The amount of time a primitive is considered to be probably visible after it was last actually visible.
 
TArray< FLinearColor > QuadComplexityColors
 The colors used to render quad complexity.
 
class UMaterial * RemoveSurfaceMaterial
 Material used to indicate that the associated BSP surface should be removed.
 
FSoftObjectPath RemoveSurfaceMaterialName
 Path of the material used to indicate that the associated BSP surface should be removed.
 
float RenderLightMapDensityColorScale
 The scale factor when rendering color density.
 
float RenderLightMapDensityGrayscaleScale
 The scale factor when rendering gray scale density.
 
TArray< FString > RuntimeServerActors
 Runtime-modified list of server actors, allowing plugins to use serveractors, without permanently adding them to config files
 
float SelectionHighlightIntensity
 Used to alter the intensity level of the selection highlight on selected objects
 
float SelectionHighlightIntensityBillboards
 Used to alter the intensity level of the selection highlight on selected billboard objects
 
TArray< FString > ServerActors
 A configurable list of actors that are automatically spawned upon server startup (just prior to InitGame)
 
class UMaterial * ShadedLevelColorationLitMaterial
 Material used for visualizing level membership in lit view port modes. 更多...
 
FString ShadedLevelColorationLitMaterialName
 Path of the material used for visualizing level membership in lit view port modes. 更多...
 
class UMaterial * ShadedLevelColorationUnlitMaterial
 Material used for visualizing level membership in unlit view port modes. 更多...
 
FString ShadedLevelColorationUnlitMaterialName
 Path of the material used for visualizing level membership in unlit view port modes. 更多...
 
TArray< FLinearColor > ShaderComplexityColors
 The colors used to render shader complexity.
 
FSoftObjectPath SmallFontName
 Sets the font used for small engine text, used for most debug displays
 
FFloatRange SmoothedFrameRateRange
 Range of framerates in which smoothing will kick in
 
TArray< struct FStatColorMapping > StatColorMappings
 Colors used to display specific profiling stats
 
TArray< FLinearColor > StationaryLightOverlapColors
 The colors used to render stationary light overlap.
 
TSharedPtr< class IStereoRendering, ESPMode::ThreadSafe > StereoRenderingDevice
 Reference to the stereoscopic rendering interface, if any
 
TArray< FLinearColor > StreamingAccuracyColors
 The colors used for texture streaming accuracy debug view modes.
 
float StreamingDistanceFactor
 Fudge factor for tweaking the distance based miplevel determination
 
FSoftObjectPath SubtitleFontName
 Sets the font used by the default Subtitle Manager
 
FSoftClassPath TimecodeProviderClassName
 Set TimecodeProvider when the engine is started.
 
FSoftObjectPath TinyFontName
 Sets the font used for the smallest engine text
 
FString TransitionDescription
 The current transition description text.
 
FString TransitionGameMode
 The gamemode for the destination map
 
ETransitionType TransitionType
 The state of the current map transition. 更多...
 
class UMaterial * VertexColorMaterial
 Material used to visualize vertex colors as emissive
 
FString VertexColorMaterialName
 Path of the material used to visualize vertex colors as emissive
 
class UMaterial * VertexColorViewModeMaterial_AlphaAsColor
 Material for visualizing vertex colors on meshes in the scene (alpha channel as color)
 
class UMaterial * VertexColorViewModeMaterial_BlueOnly
 Material for visualizing vertex colors on meshes in the scene (blue only)
 
class UMaterial * VertexColorViewModeMaterial_ColorOnly
 Material for visualizing vertex colors on meshes in the scene (color only, no alpha)
 
class UMaterial * VertexColorViewModeMaterial_GreenOnly
 Material for visualizing vertex colors on meshes in the scene (green only)
 
class UMaterial * VertexColorViewModeMaterial_RedOnly
 Material for visualizing vertex colors on meshes in the scene (red only)
 
FString VertexColorViewModeMaterialName_AlphaAsColor
 Path of the material for visualizing vertex colors on meshes in the scene (alpha channel as color)
 
FString VertexColorViewModeMaterialName_BlueOnly
 Path of the material for visualizing vertex colors on meshes in the scene (blue only)
 
FString VertexColorViewModeMaterialName_ColorOnly
 Path of the material for visualizing vertex colors on meshes in the scene (color only, no alpha)
 
FString VertexColorViewModeMaterialName_GreenOnly
 Path of the material for visualizing vertex colors on meshes in the scene (green only)
 
FString VertexColorViewModeMaterialName_RedOnly
 Path of the material for visualizing vertex colors on meshes in the scene (red only)
 
TSharedPtr< FSceneViewExtensions > ViewExtensions
 Extensions that can modify view parameters on the render thread.
 
class UTexture * WeightMapPlaceholderTexture
 Texture used as a placeholder for terrain weight-maps to give the material the correct texture format.
 
FSoftObjectPath WeightMapPlaceholderTextureName
 Path of the texture used as a placeholder for terrain weight-maps to give the material the correct texture format.
 
class UMaterial * WireframeMaterial
 The material used to render wireframe meshes.
 
FString WireframeMaterialName
 Path of the material used to render wireframe meshes in the editor and debug tools.
 
FSoftClassPath WorldSettingsClassName
 Sets the class to use for WorldSettings, which can be overridden to store game-specific information on map/world.
 
TSharedPtr< class IXRTrackingSystem, ESPMode::ThreadSafe > XRSystem
 Reference to the VR/AR/MR tracking system that is attached, if any
 

Protected 成员函数

void CancelPendingMapChange (FWorldContext &Context)
 Cancels pending map change. 更多...
 
bool CommitMapChange (FWorldContext &Context)
 Finalizes the pending map change that was being kicked off by PrepareMapChange. 更多...
 
void ConditionalCommitMapChange (FWorldContext &WorldContext)
 Commit map change if requested and map change is pending. 更多...
 
FString GetMapChangeFailureDescription (FWorldContext &Context)
 Returns the failure description in case of a failed map change request. 更多...
 
virtual void HandleBrowseToDefaultMapFailure (FWorldContext &Context, const FString &TextURL, const FString &Error)
 Attempts to gracefully handle a failure to travel to the default map. 更多...
 
virtual void InitializeAudioDeviceManager ()
 Initialize the audio device manager
 
virtual bool InitializeEyeTrackingDevice ()
 Detects and initializes any attached eye-tracking devices 更多...
 
virtual bool InitializeHMDDevice ()
 Detects and initializes any attached HMD devices 更多...
 
virtual void InitializeObjectReferences ()
 Loads all Engine object references from their corresponding config entries.
 
virtual void InitializePortalServices ()
 Initialize Portal services.
 
virtual void InitializeRunningAverageDeltaTime ()
 Initializes the running average delta to some good initial framerate.
 
bool IsPreparingMapChange (FWorldContext &Context)
 Returns whether we are currently preparing for a map change or not. 更多...
 
bool IsReadyForMapChange (FWorldContext &Context)
 Returns whether the prepared map change is ready for commit having called. 更多...
 
bool IsWorldDuplicate (const UWorld *const InWorld)
 Helper function that returns true if InWorld is the outer of a level in a collection of type DynamicDuplicatedLevels. 更多...
 
bool PerformError (const TCHAR *Cmd, FOutputDevice &Out= *GLog)
 Requests that the engine intentionally performs an invalid operation. 更多...
 
bool PrepareMapChange (FWorldContext &WorldContext, const TArray< FName > &LevelNames)
 Prepares the engine for a map change by pre-loading level packages in the background. 更多...
 
virtual void ProcessToggleFreezeCommand (UWorld *InWorld)
 Handles freezing/unfreezing of rendering 更多...
 
virtual void ProcessToggleFreezeStreamingCommand (UWorld *InWorld)
 Handles frezing/unfreezing of streaming
 
virtual void RecordHMDAnalytics ()
 Record EngineAnalytics information for attached HMD devices.
 
virtual bool ShouldShutdownWorldNetDriver ()
 Returns true if BROWSE should shuts down the current network driver.
 
- Protected 成员函数 继承自 UObject
bool CanCheckDefaultSubObjects (bool bForceCheck, bool &bResult) const
 Checks it's ok to perform subobjects check at this time.
 
virtual bool CheckDefaultSubobjectsInternal () const
 Checks default sub-object assumptions. 更多...
 
virtual FString GetDetailedInfoInternal () const
 This function actually does the work for the GetDetailedInfo() and is virtual. 更多...
 
- Protected 成员函数 继承自 UObjectBase
virtual void DeferredRegister (UClass *UClassStaticClass, const TCHAR *PackageName, const TCHAR *Name)
 Convert a boot-strap registered class into a real one, add to uobject array, etc 更多...
 
void LowLevelRename (FName NewName, UObject *NewOuter=NULL)
 Just change the FName and Outer and rehash into name hash tables. 更多...
 
void Register (const TCHAR *PackageName, const TCHAR *Name)
 Enqueue the registration for this object.
 
virtual void RegisterDependencies ()
 Force any base classes to be registered first
 
FORCEINLINE void SetFlagsTo (EObjectFlags NewFlags)
 Set the object flags directly 更多...
 
 UObjectBase (EObjectFlags InFlags)
 Constructor used for bootstrapping 更多...
 

Protected 属性

TSharedPtr< FPerformanceTrackingChart > ActivePerformanceChart
 Active FPS chart (initialized by startfpschart, finalized by stopfpschart)
 
TArray< TSharedPtr< IPerformanceDataConsumer > > ActivePerformanceDataConsumers
 List of all active performance consumers
 
FAudioDeviceManager * AudioDeviceManager
 The audio device manager
 
FAudioDeviceHandle MainAudioDeviceHandle
 Audio device handle to the main audio device.
 
TSharedPtr< IMessageRpcClient > PortalRpcClient
 Portal RPC client.
 
TSharedPtr< IPortalRpcLocator > PortalRpcLocator
 Portal RPC server locator.
 
TSharedPtr< FTypeContainer > ServiceDependencies
 Holds a type container for service dependencies.
 
TSharedPtr< IPortalServiceLocator > ServiceLocator
 Holds registered service instances.
 
FWorldAddedEvent WorldAddedEvent
 Broadcasts when a world is added.
 
FWorldDestroyedEvent WorldDestroyedEvent
 Broadcasts when a world is destroyed.
 

额外继承的成员函数

- 静态 Protected 成员函数 继承自 UObjectBaseUtility
static void CreateClusterFromObject (UObjectBaseUtility *ClusterRootObject, UObjectBaseUtility *ReferencingObject)
 Helper function to create a cluster from UObject
 

详细描述

Abstract base class of all Engine classes, responsible for management of systems critical to editor or game systems.

Also defines default classes for certain engine systems.

成员函数说明

◆ AddOnScreenDebugMessage() [1/2]

void UEngine::AddOnScreenDebugMessage ( int32  Key,
float  TimeToDisplay,
FColor  DisplayColor,
const FString &  DebugMessage,
bool  bNewerOnTop = true,
const FVector2D &  TextScale = FVector2D::UnitVector 
)

Add a FString to the On-screen debug message system.

bNewerOnTop only works with Key == INDEX_NONE

◆ AddOnScreenDebugMessage() [2/2]

void UEngine::AddOnScreenDebugMessage ( uint64  Key,
float  TimeToDisplay,
FColor  DisplayColor,
const FString &  DebugMessage,
bool  bNewerOnTop = true,
const FVector2D &  TextScale = FVector2D::UnitVector 
)

Add a FString to the On-screen debug message system.

bNewerOnTop only works with Key == INDEX_NONE

◆ AddTextureStreamingSlaveLoc()

void UEngine::AddTextureStreamingSlaveLoc ( FVector  InLoc,
float  BoostFactor,
bool  bOverrideLocation,
float  OverrideDuration 
)

Adds a world location as a secondary view location for purposes of texture streaming.

Lasts one frame, or a specified number of seconds (for overriding locations only).

参数
InLocLocation to add to texture streaming for this frame
BoostFactorA factor that affects all streaming distances for this location. 1.0f is default. Higher means higher-resolution textures and vice versa.
bOverrideLocationWhether this is an override location, which forces the streaming system to ignore all other locations
OverrideDurationHow long the streaming system should keep checking this location if bOverrideLocation is true, in seconds. 0 means just for the next Tick.

◆ AllowSelectTranslucent()

virtual bool UEngine::AllowSelectTranslucent ( ) const
inlinevirtual
返回
true if selection of translucent objects in perspective view ports is allowed

◆ AreEditorAnalyticsEnabled()

virtual bool UEngine::AreEditorAnalyticsEnabled ( ) const
inlinevirtual
返回
true if editor analytics are enabled

◆ BlockTillLevelStreamingCompleted()

void UEngine::BlockTillLevelStreamingCompleted ( UWorld *  InWorld)

Updates level streaming state using active game players view and blocks until all sub-levels are loaded/ visible/ hidden so further calls to UpdateLevelStreaming won't do any work unless state changes.

参数
InWorldTarget world

◆ CancelPendingMapChange() [1/2]

void UEngine::CancelPendingMapChange ( FWorldContext &  Context)
protected

Cancels pending map change.


◆ CancelPendingMapChange() [2/2]

void UEngine::CancelPendingMapChange ( UWorld *  InWorld)
inline

Cancels pending map change.


◆ ChangeDynamicResolutionStateAtNextFrame()

void UEngine::ChangeDynamicResolutionStateAtNextFrame ( TSharedPtr< class IDynamicResolutionState >  NewState)

Override dynamic resolution state for next frame.

Old dynamic resolution state will be disabled, and the new one will be enabled automatically at next frame.

◆ CleanupPackagesToFullyLoad()

void UEngine::CleanupPackagesToFullyLoad ( FWorldContext &  Context,
EFullyLoadPackageType  FullyLoadType,
const FString &  Tag 
)

Removes the PerMapPackages from the RootSet

参数
FullyLoadTypeWhen to load the packages (based on map, GameMode, etc)
TagName of the map/game to cleanup packages for

◆ CommitMapChange()

bool UEngine::CommitMapChange ( FWorldContext &  Context)
protected

Finalizes the pending map change that was being kicked off by PrepareMapChange.

参数
InCurrentWorldthe world context
返回
true if successful, false if there were errors (use GetMapChangeFailureDescription for error description)

◆ ConditionalCommitMapChange()

void UEngine::ConditionalCommitMapChange ( FWorldContext &  WorldContext)
protected

Commit map change if requested and map change is pending.

Called every frame.

◆ CorrectNegativeTimeDelta()

virtual double UEngine::CorrectNegativeTimeDelta ( double  DeltaRealTime)
virtual

Allows games to correct the negative delta

返回
new delta

◆ CreateNamedNetDriver() [1/2]

bool UEngine::CreateNamedNetDriver ( UPendingNetGame *  PendingNetGame,
FName  NetDriverName,
FName  NetDriverDefinition 
)

Creates a UNetDriver and associates a name with it.

参数
PendingNetGamethe pending net game context
NetDriverNameThe name to associate with the driver.
NetDriverDefinitionThe name of the definition to use
返回
True if the driver was created successfully, false if there was an error.

◆ CreateNamedNetDriver() [2/2]

bool UEngine::CreateNamedNetDriver ( UWorld *  InWorld,
FName  NetDriverName,
FName  NetDriverDefinition 
)

Creates a UNetDriver and associates a name with it.

参数
InWorldthe world context
NetDriverNameThe name to associate with the driver.
NetDriverDefinitionThe name of the definition to use
返回
True if the driver was created successfully, false if there was an error.

◆ CreateNetDriver()

UNetDriver * UEngine::CreateNetDriver ( UWorld *  InWorld,
FName  NetDriverDefinition 
)

Creates a UNetDriver with an engine assigned name

参数
InWorldthe world context
NetDriverDefinitionThe name of the definition to use
返回
new netdriver if successful, nullptr otherwise

◆ DECLARE_EVENT_FourParams()

UEngine::DECLARE_EVENT_FourParams ( UEngine  ,
FOnNetworkFailure  ,
UWorld *  ,
UNetDriver *  ,
ENetworkFailure::Type  ,
const FString &   
)

Error message event relating to network failures

参数
Typetype of network failure
Namename of netdriver that generated the failure
ErrorStringadditional error message

◆ DECLARE_EVENT_ThreeParams() [1/4]

UEngine::DECLARE_EVENT_ThreeParams ( UEngine  ,
FOnNetworkDDoSEscalation  ,
UWorld *  ,
UNetDriver *  ,
FString   
)

Network burst or DDoS detected.

Used for triggering analytics, mostly

参数
SeverityCategoryThe name of the severity category the DDoS detection escalated to

◆ DECLARE_EVENT_ThreeParams() [2/4]

UEngine::DECLARE_EVENT_ThreeParams ( UEngine  ,
FOnNetworkLagStateChanged  ,
UWorld *  ,
UNetDriver *  ,
ENetworkLagState::Type   
)

Network lag detected.

For the server this means all clients are timing out. On the client it means you are timing out.

◆ DECLARE_EVENT_ThreeParams() [3/4]

UEngine::DECLARE_EVENT_ThreeParams ( UEngine  ,
FOnNewStatRegistered  ,
const FName &  ,
const FName &  ,
const FText &   
)

Delegate we fire every time a new stat has been registered.

参数
FNameThe name of the new stat.
FNameThe category of the new stat.
FTextThe description of the new stat.

◆ DECLARE_EVENT_ThreeParams() [4/4]

UEngine::DECLARE_EVENT_ThreeParams ( UEngine  ,
FOnTravelFailure  ,
UWorld *  ,
ETravelFailure::Type  ,
const FString &   
)

Error message event relating to server travel failures

参数
Typetype of travel failure
ErrorStringadditional error message

◆ DestroyNamedNetDriver()

void UEngine::DestroyNamedNetDriver ( UWorld *  InWorld,
FName  NetDriverName 
)

Destroys a UNetDriver based on its name.

参数
NetDriverNameThe name associated with the driver to destroy.

◆ EnableScreenSaver()

void UEngine::EnableScreenSaver ( bool  bEnable)

Enables or disables the ScreenSaver (PC only)

参数
bEnableIf true the enable the screen saver, if false disable it.

◆ ExecEngineStat()

void UEngine::ExecEngineStat ( UWorld *  World,
FCommonViewportClient *  ViewportClient,
const TCHAR *  InName 
)

Wrapper for firing a simple stat exec.

参数
WorldThe world to apply the exec to.
ViewportClientThe viewport to apply the exec to.
InNameThe exec string.

◆ Experimental_ShouldPreDuplicateMap()

virtual bool UEngine::Experimental_ShouldPreDuplicateMap ( const FName  MapName) const
inlinevirtual

If this function returns true, the DynamicSourceLevels collection will be duplicated for the given map.

This is necessary to do outside of the editor when we don't have the original editor world, and it's not safe to copy the dynamic levels once they've been fully initialized, so we pre-duplicate them when the original levels are first created.

◆ FindFirstLocalPlayerFromControllerId()

class ULocalPlayer * UEngine::FindFirstLocalPlayerFromControllerId ( int32  ControllerId) const

Returns the first ULocalPlayer that matches the given ControllerId.

This will search across all world contexts.

◆ FindNamedNetDriver()

UNetDriver * UEngine::FindNamedNetDriver ( const UWorld *  InWorld,
FName  NetDriverName 
)

Finds a UNetDriver based on its name.

参数
NetDriverNameThe name associated with the driver to find.
返回
A pointer to the UNetDriver that was found, or nullptr if it wasn't found.

◆ FinishDestroy()

virtual void UEngine::FinishDestroy ( )
overridevirtual

Called to finish destroying the object.

After UObject::FinishDestroy is called, the object's memory should no longer be accessed.

警告
Because properties are destroyed here, Super::FinishDestroy() should always be called at the end of your child class's FinishDestroy() method, rather than at the beginning.

重载 UObject .

被 UGameEngine 重载.

◆ GetActiveAudioDevice()

FAudioDeviceHandle UEngine::GetActiveAudioDevice ( )
返回
the currently active audio device

◆ GetAdditionalFont()

static class UFont * UEngine::GetAdditionalFont ( int32  AdditionalFontIndex)
static

Gets the specified additional font.

参数
AdditionalFontIndex- Index into the AddtionalFonts array.

◆ GetAllLocalPlayerControllers()

void UEngine::GetAllLocalPlayerControllers ( TArray< APlayerController * > &  PlayerList)

Gets all local players associated with the engine.

This function should only be used in rare cases where no UWorld* is available to get a player list associated with the world. E.g, - use GetFirstLocalPlayerController(UWorld *InWorld) when possible!

◆ GetAudioDeviceManager()

FAudioDeviceManager * UEngine::GetAudioDeviceManager ( )
返回
the audio device manager of the UEngine, this allows the creation and management of multiple audio devices.

◆ GetCurrentPlayWorld()

UWorld * UEngine::GetCurrentPlayWorld ( UWorld *  PossiblePlayWorld = nullptr) const

Tries to find the currently active primary Game or Play in Editor world, returning null if it is ambiguous.

This should only be called if you do not have a reliable world context object to use.

参数
PossiblePlayWorldIf set, this will be checked first and returned if valid. If this is not the active play world, null will be returned due to ambiguity
返回
either nullptr or a World that is guaranteed to be of type Game or PIE

◆ GetDebugLocalPlayer()

ULocalPlayer * UEngine::GetDebugLocalPlayer ( )

returns the first ULocalPlayer that should be used for debug purposes.

This should only be used in very special cases where no UWorld* is available! Anything using this will not function properly under multiple worlds. Always prefer to use GetFirstGamePlayer() or even better - FLocalPlayerIterator

返回
the first ULocalPlayer

◆ GetDefaultWorldFeatureLevel()

virtual ERHIFeatureLevel::Type UEngine::GetDefaultWorldFeatureLevel ( ) const
virtual

The feature used to create new worlds, by default.

Overridden for feature level preview in the editor

◆ GetFirstGamePlayer()

ULocalPlayer * UEngine::GetFirstGamePlayer ( UWorld *  InWorld)

return the first ULocalPlayer in the GamePlayers array.

返回
first ULocalPlayer or nullptr if the array is empty

◆ GetFirstLocalPlayerController()

class APlayerController * UEngine::GetFirstLocalPlayerController ( const UWorld *  InWorld)

Find a Local Player Controller, which may not exist at all if this is a server.

返回
first found LocalPlayerController. Fine for single player, in split screen, one will be picked.

◆ GetGamePlayer()

ULocalPlayer * UEngine::GetGamePlayer ( UWorld *  InWorld,
int32  InPlayer 
)

return the ULocalPlayer with the given index.

参数
InPlayerIndex of the player required
返回
pointer to the LocalPlayer with the given index

◆ GetGlobalFunctionCallspace()

int32 UEngine::GetGlobalFunctionCallspace ( UFunction *  Function,
UObject *  FunctionTarget,
FFrame *  Stack 
)

Called from GetFunctionCallspace on specific objects to check for authority/cosmetic function tags using global state

参数
FunctionFunction to check for network mode flags like AuthorityOnly, cannot be null
FunctionTargetObject this function will be called on, if not null this may be used to determine context
StackFunction call stack, if not null this may be used to determine context

◆ GetLargeFont()

static class UFont * UEngine::GetLargeFont ( )
static

Gets the engine's default large font.

返回
Large font.

◆ GetLocalPlayerFromControllerId()

ULocalPlayer * UEngine::GetLocalPlayerFromControllerId ( const UGameViewportClient *  InViewport,
const int32  ControllerId 
) const

Retrieves the LocalPlayer for the player which has the ControllerId specified

参数
ControllerIdthe game pad index of the player to search for
返回
The player that has the ControllerId specified, or nullptr if no players have that ControllerId

◆ GetMainAudioDevice()

FAudioDeviceHandle UEngine::GetMainAudioDevice ( )
返回
the main audio device.

◆ GetMainAudioDeviceID()

uint32 UEngine::GetMainAudioDeviceID ( ) const
返回
the main audio device handle used by the engine.

◆ GetMapChangeFailureDescription()

FString UEngine::GetMapChangeFailureDescription ( FWorldContext &  Context)
protected

Returns the failure description in case of a failed map change request.

返回
Human readable failure description in case of failure, empty string otherwise

◆ GetMediumFont()

static class UFont * UEngine::GetMediumFont ( )
static

Gets the engine's default medium font.

返回
Medium font.

◆ GetNetMode()

ENetMode UEngine::GetNetMode ( const UWorld *  World) const

Returns the current netmode

参数
NetDriverNameName of the net driver to get mode for
返回
current netmode

Note: if there is no valid net driver, returns NM_StandAlone

◆ GetPackageGuid()

static FGuid UEngine::GetPackageGuid ( FName  PackageName,
bool  bForPIE 
)
static

Looks up the GUID of a package on disk.

The package must NOT be in the auto-download cache. This may require loading the header of the package in question and is therefore slow.

◆ GetPropertyColorationColor()

virtual bool UEngine::GetPropertyColorationColor ( class UObject *  Object,
FColor &  OutColor 
)
virtual

Computes a color to use for property coloration for the given object.

参数
ObjectThe object for which to compute a property color.
OutColor[out] The returned color.
返回
true if a color was successfully set on OutColor, false otherwise.

◆ GetServiceLocator()

TSharedRef< IPortalServiceLocator > UEngine::GetServiceLocator ( )
inline

Get a locator for Portal services.

返回
The service locator.

◆ GetSmallFont()

static class UFont * UEngine::GetSmallFont ( )
static

Gets the engine's default small font

返回
Small font.

◆ GetSpriteCategoryIndex()

virtual int32 UEngine::GetSpriteCategoryIndex ( const FName &  InSpriteCategory)
inlinevirtual

Get the index of the provided sprite category

参数
InSpriteCategorySprite category to get the index of
返回
Index of the provided sprite category, if possible; INDEX_NONE otherwise

◆ GetSubtitleFont()

static class UFont * UEngine::GetSubtitleFont ( )
static

Gets the engine's default subtitle font.

返回
Subtitle font.

◆ GetTinyFont()

static class UFont * UEngine::GetTinyFont ( )
static

Gets the engine's default tiny font.

返回
Tiny font.

◆ GetWorldFromContextObject()

UWorld * UEngine::GetWorldFromContextObject ( const UObject *  Object,
EGetWorldErrorMode  ErrorMode 
) const

Obtain a world object pointer from an object with has a world context.

参数
ObjectObject whose owning world we require.
ErrorModeControls what happens if the Object cannot be found
返回
The world to which the object belongs or nullptr if it cannot be found.

◆ GetWorldFromContextObjectChecked()

UWorld * UEngine::GetWorldFromContextObjectChecked ( const UObject *  Object) const
inline

Obtain a world object pointer from an object with has a world context.

参数
ObjectObject whose owning world we require.
返回
The world to which the object belongs; asserts if the world cannot be found!

◆ HandleBrowseToDefaultMapFailure()

virtual void UEngine::HandleBrowseToDefaultMapFailure ( FWorldContext &  Context,
const FString &  TextURL,
const FString &  Error 
)
protectedvirtual

Attempts to gracefully handle a failure to travel to the default map.

参数
Errorthe error string result from the LoadMap call that attempted to load the default map.

被 UGameEngine 重载.

◆ HandleDisconnect()

void UEngine::HandleDisconnect ( UWorld *  InWorld,
UNetDriver *  NetDriver 
)

The proper way to disconnect a given World and NetDriver.

Travels world if necessary, cleans up pending connects if necessary.

参数
InWorldThe world being disconnected (might be nullptr in case of pending net dupl)
NetDriverThe net driver being disconnect (will be InWorld's net driver if there is a world)

◆ HandleNetworkFailure()

virtual void UEngine::HandleNetworkFailure ( UWorld *  World,
UNetDriver *  NetDriver,
ENetworkFailure::Type  FailureType,
const FString &  ErrorString 
)
virtual

Notification of network error messages, allows the engine to handle the failure

参数
Worldassociated with failure
NetDriverassociated with failure
FailureTypethe type of error
ErrorStringadditional string detailing the error

◆ HandleNetworkLagStateChanged()

virtual void UEngine::HandleNetworkLagStateChanged ( UWorld *  World,
UNetDriver *  NetDriver,
ENetworkLagState::Type  LagType 
)
virtual

Notification of network lag state change messages.

参数
Worldassociated with the lag
NetDriverassociated with the lag
LagTypeWhether we started lagging or we are no longer lagging

◆ HandleTravelFailure()

virtual void UEngine::HandleTravelFailure ( UWorld *  InWorld,
ETravelFailure::Type  FailureType,
const FString &  ErrorString 
)
virtual

Notification of server travel error messages, generally network connection related (package verification, client server handshaking, etc) allows the engine to handle the failure

参数
InWorldthe world we were in when the travel failure occurred
FailureTypethe type of error
ErrorStringadditional string detailing the error

◆ InitializeEyeTrackingDevice()

virtual bool UEngine::InitializeEyeTrackingDevice ( )
protectedvirtual

Detects and initializes any attached eye-tracking devices

返回
true if there is an initialized device, false otherwise

◆ InitializeHMDDevice()

virtual bool UEngine::InitializeHMDDevice ( )
protectedvirtual

Detects and initializes any attached HMD devices

返回
true if there is an initialized device, false otherwise

◆ IsAutosaving()

virtual bool UEngine::IsAutosaving ( ) const
inlinevirtual
返回
true if the engine is autosaving a package

◆ IsEditor()

bool UEngine::IsEditor ( )
返回
the GIsEditor flag setting

◆ IsEngineStat()

bool UEngine::IsEngineStat ( const FString &  InName)

Check to see if the specified stat name is a simple stat.

参数
InNameThe name of the stat we're checking.
返回
true if the stat is a registered simple stat.

◆ IsPreparingMapChange()

bool UEngine::IsPreparingMapChange ( FWorldContext &  Context)
protected

Returns whether we are currently preparing for a map change or not.

返回
true if we are preparing for a map change, false otherwise

◆ IsReadyForMapChange()

bool UEngine::IsReadyForMapChange ( FWorldContext &  Context)
protected

Returns whether the prepared map change is ready for commit having called.

返回
true if we're ready to commit the map change, false otherwise

◆ IsSplitScreen()

virtual bool UEngine::IsSplitScreen ( UWorld *  InWorld)
virtual
返回
whether we're currently running in split screen (more than one local player)

◆ IsStereoscopic3D()

bool UEngine::IsStereoscopic3D ( FViewport *  InViewport = nullptr)
返回
whether we're currently running with stereoscopic 3D enabled for the specified viewport (or globally, if viewport is nullptr)

◆ IsWorldDuplicate()

bool UEngine::IsWorldDuplicate ( const UWorld *const  InWorld)
protected

Helper function that returns true if InWorld is the outer of a level in a collection of type DynamicDuplicatedLevels.

For internal engine use.

◆ LoadPackagesFully()

void UEngine::LoadPackagesFully ( UWorld *  InWorld,
EFullyLoadPackageType  FullyLoadType,
const FString &  Tag 
)

Loads the PerMapPackages for the given map, and adds them to the RootSet

参数
FullyLoadTypeWhen to load the packages (based on map, GameMode, etc)
TagName of the map/game to load packages for

◆ LogPerformanceCapture()

void UEngine::LogPerformanceCapture ( UWorld *  World,
const FString &  MapName,
const FString &  MatineeName,
float  EventTime 
)

Logs performance capture for use in automation analytics

参数
EventTimetime of the Matinee event

◆ MakeSureMapNameIsValid()

bool UEngine::MakeSureMapNameIsValid ( FString &  InOutMapName)

Makes sure map name is a long package name.

参数
InOutMapNameMap name. In non-final builds code will attempt to convert to long package name if short name is provided.
trueif the map name was valid, false otherwise.

◆ OnLostFocusPause()

virtual void UEngine::OnLostFocusPause ( bool  EnablePause)
virtual

Pauses / un-pauses the game-play when focus of the game's window gets lost / gained.

参数
EnablePausetrue to pause; false to unpause the game

◆ OnlyLoadEditorVisibleLevelsInPIE()

virtual bool UEngine::OnlyLoadEditorVisibleLevelsInPIE ( ) const
inlinevirtual
返回
true if only editor-visible levels should be loaded in Play-In-Editor sessions

◆ OverrideSelectedMaterialColor()

void UEngine::OverrideSelectedMaterialColor ( const FLinearColor &  OverrideColor)

Sets an override color to use instead of the user setting

参数
OverrideColorThe override color to use

◆ ParseCommandline()

void UEngine::ParseCommandline ( )

Called at startup, in the middle of FEngineLoop::Init.


◆ PerformanceCapture()

void UEngine::PerformanceCapture ( UWorld *  World,
const FString &  MapName,
const FString &  MatineeName,
float  EventTime 
)

Capture screenshots and performance metrics

参数
EventTimetime of the Matinee event

◆ PerformError()

bool UEngine::PerformError ( const TCHAR *  Cmd,
FOutputDevice &  Out = *GLog 
)
protected

Requests that the engine intentionally performs an invalid operation.

Used for testing error handling and external crash reporters

参数
CmdError to perform. See implementation for options

◆ PreExit()

virtual void UEngine::PreExit ( )
virtual

Called at shutdown, just before the exit purge.


被 UGameEngine 重载.

◆ PreferToStreamLevelsInPIE()

virtual bool UEngine::PreferToStreamLevelsInPIE ( ) const
inlinevirtual
返回
true if level streaming should prefer to stream levels from disk instead of duplicating them from editor world

◆ PrepareMapChange()

bool UEngine::PrepareMapChange ( FWorldContext &  WorldContext,
const TArray< FName > &  LevelNames 
)
protected

Prepares the engine for a map change by pre-loading level packages in the background.

参数
LevelNamesArray of levels to load in the background; the first level in this list is assumed to be the new "persistent" one.
返回
true if all packages were in the package file cache and the operation succeeded, false otherwise. false as a return value also indicates that the code has given up.

◆ ProcessToggleFreezeCommand()

virtual void UEngine::ProcessToggleFreezeCommand ( UWorld *  InWorld)
inlineprotectedvirtual

Handles freezing/unfreezing of rendering

参数
InWorldWorld context

被 UGameEngine 重载.

◆ RegisterBeginStreamingPauseRenderingDelegate()

void UEngine::RegisterBeginStreamingPauseRenderingDelegate ( FBeginStreamingPauseDelegate *  InDelegate)

Delegate handling when streaming pause begins.

Set initially in FStreamingPauseRenderingModule::StartupModule() but can then be overridden by games.

◆ RegisterEndStreamingPauseRenderingDelegate()

void UEngine::RegisterEndStreamingPauseRenderingDelegate ( FEndStreamingPauseDelegate *  InDelegate)

Delegate handling when streaming pause ends.

Set initially in FStreamingPauseRenderingModule::StartupModule() but can then be overridden by games.

◆ RenderEngineStats()

void UEngine::RenderEngineStats ( UWorld *  World,
FViewport *  Viewport,
FCanvas *  Canvas,
int32  LHSX,
int32 &  InOutLHSY,
int32  RHSX,
int32 &  InOutRHSY,
const FVector *  ViewLocation,
const FRotator *  ViewRotation 
)

Function to render all the simple stats

参数
WorldThe world being drawn to.
ViewportClientThe viewport being drawn to.
CanvasThe canvas to use when drawing.
LHSXThe left hand side X position to start drawing from.
InOutLHSYThe left hand side Y position to start drawing from.
RHSXThe right hand side X position to start drawing from.
InOutRHSYThe right hand side Y position to start drawing from.
ViewLocationThe world space view location.
ViewRotationThe world space view rotation.

◆ Serialize()

virtual void UEngine::Serialize ( FArchive &  Ar)
overridevirtual

Handles reading, writing, and reference collecting using FArchive.

This implementation handles all FProperty serialization, but can be overridden for native variables.

重载 UObject .

◆ SetCustomTimeStep()

bool UEngine::SetCustomTimeStep ( UEngineCustomTimeStep *  InCustomTimeStep)

Set the custom time step that will control the Engine Framerate/Timestep.

It will shutdown the previous custom time step. The new custom time step will be initialized.

返回
the result of the custom time step initialization.

◆ SetEngineStat()

void UEngine::SetEngineStat ( UWorld *  World,
FCommonViewportClient *  ViewportClient,
const FString &  InName,
const bool  bShow 
)

Set the state of the specified stat.

参数
WorldThe world to apply the exec to.
ViewportClientThe viewport to apply the exec to.
InNameThe stat name.
bShowThe state we would like the stat to be in.

◆ SetEngineStats()

void UEngine::SetEngineStats ( UWorld *  World,
FCommonViewportClient *  ViewportClient,
const TArray< FString > &  InNames,
const bool  bShow 
)

Set the state of the specified stats (note: array processed in reverse order when !bShow).

参数
WorldThe world to apply the exec to.
ViewportClientThe viewport to apply the exec to.
InNamesThe stat names.
bShowThe state we would like the stat to be in.

◆ SetMapBuildCancelled()

virtual void UEngine::SetMapBuildCancelled ( bool  InCancelled)
inlinevirtual

Sets the flag that states whether or not the map build was canceled.

参数
InCancelledNew state for the canceled flag.

◆ SetMaxFPS()

virtual void UEngine::SetMaxFPS ( const float  MaxFPS)
virtual

Set max fps.

Overrides console variable.

◆ SetSelectedMaterialColor()

void UEngine::SetSelectedMaterialColor ( const FLinearColor &  InSelectedMaterialColor)
inline

Sets the selected material color.


Do not use this if you plan to override the selected material color. Use OverrideSelectedMaterialColor instead This is set by the editor preferences

参数
SelectedMaterialColorThe new selection color

◆ SetTimecodeProvider()

bool UEngine::SetTimecodeProvider ( UTimecodeProvider *  InTimecodeProvider)

Set the timecode provider that will control the Engine's timecode.

It will shutdown the previous timecode provider. The new timecode provider will be initialized.

返回
the result value of the new timecode provider initialization.

◆ SetTimeUntilNextGarbageCollection()

void UEngine::SetTimeUntilNextGarbageCollection ( float  MinTimeUntilNextPass)

Updates the timer (as a one-off) that is used to trigger garbage collection; this should only be used for things like performance tests, using it recklessly can dramatically increase memory usage and cost of the eventual GC.

Note: Things that force a GC will still force a GC after using this method (and they will also reset the timer)

◆ ShouldAbsorbAuthorityOnlyEvent()

bool UEngine::ShouldAbsorbAuthorityOnlyEvent ( )

Returns true if the global context is client-only and authority only events should always be ignored.

This will return false if it is unknown, use GetCurrentPlayWorld if you have a possible world.

◆ ShouldAbsorbCosmeticOnlyEvent()

bool UEngine::ShouldAbsorbCosmeticOnlyEvent ( )

Returns true if the global context is dedicated server and cosmetic only events should always be ignored.

This will return false if it is unknown, use GetCurrentPlayWorld if you have a possible world.

◆ ShouldThrottleCPUUsage()

virtual bool UEngine::ShouldThrottleCPUUsage ( ) const
virtual
返回
true to throttle CPU usage based on current state (usually editor minimized or not in foreground)

◆ StartFPSChart()

virtual void UEngine::StartFPSChart ( const FString &  Label,
bool  bRecordPerFrameTimes 
)
virtual

Starts the FPS chart data capture (if another run is already active then this command is ignored except to change the active label).

参数
LabelLabel for this run
bRecordPerFrameTimesShould we record per-frame times (potentially unbounded memory growth; used when triggered via the console but not when triggered by game code)

◆ TickPerformanceMonitoring()

void UEngine::TickPerformanceMonitoring ( float  DeltaSeconds)

Calculates information about the previous frame and passes it to all active performance data consumers.

参数
DeltaSecondsTime in seconds passed since last tick.

◆ TrimMemory()

static void UEngine::TrimMemory ( )
static

Attempts to reclaim any idle memory by performing a garbage collection and broadcasting FCoreDelegates::OnMemoryTrim.

Pending rendering commands are first flushed. This is called between level loads and may be called at other times, but is expensive and should be used sparingly. Do

类成员变量说明

◆ AssetManagerClassName

FSoftClassPath UEngine::AssetManagerClassName

Sets the class to spawn as the global AssetManager, configurable per game.

If empty, it will not spawn one

◆ bAllowMultiThreadedAnimationUpdate

uint32 UEngine::bAllowMultiThreadedAnimationUpdate

Controls whether by default we allow anim blueprint graph updates to be performed on non-game threads.

This enables some extra checks in the anim blueprint compiler that will warn when unsafe operations are being attempted. This will force all anim blueprints to be recompiled.

◆ bCheckForMultiplePawnsSpawnedInAFrame

uint32 UEngine::bCheckForMultiplePawnsSpawnedInAFrame

Whether we should check for more than N pawns spawning in a single frame.

Basically, spawning pawns and all of their attachments can be slow. And on consoles it can be really slow. If this bool is true we will display a

◆ bEnableOnScreenDebugMessages

uint32 UEngine::bEnableOnScreenDebugMessages

If true, then disable OnScreenDebug messages.

Can be toggled in real-time.

◆ bGenerateDefaultTimecode

bool UEngine::bGenerateDefaultTimecode

Generate a default timecode from the computer clock when there is no timecode provider.

On desktop, the system time will be used and will behave as if a USystemTimecodeProvider was set. On console, the high performance clock will be used. That may introduce drift over time. If you wish to use the system time on console, set the timecode provider to USystemeTimecodeProvider.

◆ bOptimizeAnimBlueprintMemberVariableAccess

uint32 UEngine::bOptimizeAnimBlueprintMemberVariableAccess

Controls whether anim blueprint nodes that access member variables of their class directly should use the optimized path that avoids a thunk to the Blueprint VM.

This will force all anim blueprints to be recompiled.

◆ bShouldGenerateLowQualityLightmaps_DEPRECATED

uint32 UEngine::bShouldGenerateLowQualityLightmaps_DEPRECATED

Whether or not the LQ lightmaps should be generated during lighting rebuilds.

This has been moved to r.SupportLowQualityLightmaps.

◆ CustomTimeStepClassName

FSoftClassPath UEngine::CustomTimeStepClassName

Override how the Engine process the Framerate/Timestep.

This class will be responsible of updating the application Time and DeltaTime. Can be used to synchronize the engine with another process (gen-lock).

◆ DebugEditorMaterialName

FSoftObjectPath UEngine::DebugEditorMaterialName

A material used to render debug opaque material.

Used in various animation editor viewport features.

◆ EmissiveMeshMaterial

class UMaterial* UEngine::EmissiveMeshMaterial

A material used to render emissive meshes (e.g.

light source surface).

◆ GameSingletonClassName

FSoftClassPath UEngine::GameSingletonClassName

Sets the class for a global object spawned at startup to handle game-specific data.

If empty, it will not spawn one

◆ GameViewport

class UGameViewportClient* UEngine::GameViewport

The view port representing the current game instance.

Can be 0 so don't use without checking.

◆ MaxParticleResize

int32 UEngine::MaxParticleResize

The maximum allowed size to a ParticleEmitterInstance::Resize call.

If larger, the function will return without resizing.

◆ MaxPixelShaderAdditiveComplexityCount

float UEngine::MaxPixelShaderAdditiveComplexityCount

Complexity limits for the various complexity view mode combinations.

These limits are used to map instruction counts to ShaderComplexityColors.

◆ ShadedLevelColorationLitMaterial

class UMaterial* UEngine::ShadedLevelColorationLitMaterial

Material used for visualizing level membership in lit view port modes.

Uses shading to show axis directions.

◆ ShadedLevelColorationLitMaterialName

FString UEngine::ShadedLevelColorationLitMaterialName

Path of the material used for visualizing level membership in lit view port modes.

Uses shading to show axis directions.

◆ ShadedLevelColorationUnlitMaterial

class UMaterial* UEngine::ShadedLevelColorationUnlitMaterial

Material used for visualizing level membership in unlit view port modes.

Uses shading to show axis directions.

◆ ShadedLevelColorationUnlitMaterialName

FString UEngine::ShadedLevelColorationUnlitMaterialName

Path of the material used for visualizing level membership in unlit view port modes.

Uses shading to show axis directions.

◆ TransitionType

ETransitionType UEngine::TransitionType

The state of the current map transition.



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