![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ProjectEditorRecords.h>
Public Member Functions | |
| PROJECTS_API const TSharedPtr< FJsonObject > | FindOrAddProperty (const FString &InProperty) |
Static Public Member Functions | |
| static PROJECTS_API void | QueueUpdate (TUniqueFunction< void(FProjectEditorRecord &)> &&InUpdateFunction) |
| static PROJECTS_API FProjectEditorRecord | Load () |
| static PROJECTS_API TSharedPtr< FJsonObject > | MakeDefaultProperties () |
| static PROJECTS_API void | TearDown () |
Public Attributes | |
| TSharedPtr< FJsonObject > | ProjectEditorJson |
Static Public Attributes | |
| static PROJECTS_API const FString | ProjectsProperty = TEXT("Projects") |
| static PROJECTS_API const FString | SubProjectProperty = TEXT("SubProjects") |
| static PROJECTS_API const FString | EngineLocationProperty = TEXT("EngineLocation") |
| static PROJECTS_API const FString | BaseDirProperty = TEXT("BaseDir") |
| static PROJECTS_API const FString | TimestampProperty = TEXT("LastAccessed") |
| static PROJECTS_API const FString | EpicAppProperty = TEXT("EpicApp") |
Struct specifying the structure of the records file, this is used to maintain an association between recently opened projects and the location of the editor engine used to open them. This is meant to be a machine wide record to facilitate locating the right engine executable.
Usage:
| const TSharedPtr< FJsonObject > FProjectEditorRecord::FindOrAddProperty | ( | const FString & | InProperty | ) |
Finds or adds an object property to the root of the json
| The | name of the property to find or add |
|
static |
Loads a project editor record from disk, using the default location LOCALAPPDATA%/UnrealEngine/Editor/ProjectEditorRecords.json location can be overriden by cvar r.Editor.ProjectEditorRecordsFile
|
static |
Creates a JsonObject containing the default entries
|
static |
This is the main way to interact with the json contents to add entries in a safe way.
QueueUpdate schedules a task that will try to run in another thread and perform these operations:
| Function | used to update the records in a worker thread |
|
static |
Waits for any queued async tasks to finish if there are any
|
static |
Property used to specify the path of the base dir of the engine used for the project
|
static |
Property used to specify the path of the engine used to open the project
|
static |
Property used to specify an Epic App
| TSharedPtr<FJsonObject> FProjectEditorRecord::ProjectEditorJson |
The json contents of the records loaded/saved to disk
|
static |
Property used to specify a Projects list
|
static |
Property used to specify a SubProjects list
|
static |
Property used to specify a last accessed timestamp