![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ModuleDescriptor.h>
Public Member Functions | |
| PROJECTS_API | FModuleDescriptor (const FName InName=NAME_None, EHostType::Type InType=EHostType::Runtime, ELoadingPhase::Type InLoadingPhase=ELoadingPhase::Default) |
| PROJECTS_API bool | Read (const FJsonObject &Object, FText *OutFailReason=nullptr) |
| PROJECTS_API bool | Read (const FJsonObject &Object, FText &OutFailReason) |
| PROJECTS_API void | Write (TJsonWriter<> &Writer) const |
| PROJECTS_API void | UpdateJson (FJsonObject &JsonObject) const |
| PROJECTS_API bool | IsCompiledInConfiguration (const FString &Platform, EBuildConfiguration Configuration, const FString &TargetName, EBuildTargetType TargetType, bool bBuildDeveloperTools, bool bBuildRequiresCookedData, const FString &Architecture=FString()) const |
| PROJECTS_API bool | IsCompiledInCurrentConfiguration () const |
| PROJECTS_API bool | IsLoadedInCurrentConfiguration () const |
Public Attributes | |
| FName | Name |
| EHostType::Type | Type |
| ELoadingPhase::Type | LoadingPhase |
| TArray< FString > | PlatformAllowList |
| TArray< FString > | PlatformDenyList |
| TMap< FString, TArray< FString > > | PlatformArchitectureAllowList |
| TMap< FString, TArray< FString > > | PlatformArchitectureDenyList |
| TArray< EBuildTargetType > | TargetAllowList |
| TArray< EBuildTargetType > | TargetDenyList |
| TArray< EBuildConfiguration > | TargetConfigurationAllowList |
| TArray< EBuildConfiguration > | TargetConfigurationDenyList |
| TArray< FString > | ProgramAllowList |
| TArray< FString > | ProgramDenyList |
| TArray< FString > | GameTargetAllowList |
| TArray< FString > | GameTargetDenyList |
| TArray< FString > | AdditionalDependencies |
| bool | bHasExplicitPlatforms |
Description of a loadable module.
| FModuleDescriptor::FModuleDescriptor | ( | const FName | InName = NAME_None, |
| EHostType::Type | InType = EHostType::Runtime, |
||
| ELoadingPhase::Type | InLoadingPhase = ELoadingPhase::Default |
||
| ) |
Normal constructor
|
static |
Checks that all modules are compatible with the current engine version. Returns false and appends a list of names to OutIncompatibleFiles if not.
| bool FModuleDescriptor::IsCompiledInConfiguration | ( | const FString & | Platform, |
| EBuildConfiguration | Configuration, | ||
| const FString & | TargetName, | ||
| EBuildTargetType | TargetType, | ||
| bool | bBuildDeveloperTools, | ||
| bool | bBuildRequiresCookedData, | ||
| const FString & | Architecture = FString() |
||
| ) | const |
Tests whether the module should be built for the given target
| bool FModuleDescriptor::IsCompiledInCurrentConfiguration | ( | ) | const |
Tests whether the module should be built for the current engine configuration
| bool FModuleDescriptor::IsLoadedInCurrentConfiguration | ( | ) | const |
Tests whether the module should be loaded for the current engine configuration
|
static |
Loads all the modules for a given loading phase. Returns a map of module names to load errors
| bool FModuleDescriptor::Read | ( | const FJsonObject & | Object, |
| FText & | OutFailReason | ||
| ) |
Reads a descriptor from the given JSON object
| bool FModuleDescriptor::Read | ( | const FJsonObject & | Object, |
| FText * | OutFailReason = nullptr |
||
| ) |
Reads a descriptor from the given JSON object
|
static |
Reads an array of modules from the given JSON object
|
static |
Reads an array of modules from the given JSON object
|
static |
Unloads all the modules for a given loading phase. Returns a map of module names to load errors. bSkipUnload can be used to simulate unloading
|
static |
Updates an array of module descriptors in the specified JSON field (indexed by module name)
| void FModuleDescriptor::UpdateJson | ( | FJsonObject & | JsonObject | ) | const |
Updates the given json object with values in this descriptor
| void FModuleDescriptor::Write | ( | TJsonWriter<> & | Writer | ) | const |
Writes a descriptor to JSON
|
static |
Writes an array of modules to JSON
| TArray<FString> FModuleDescriptor::AdditionalDependencies |
List of additional dependencies for building this module.
| bool FModuleDescriptor::bHasExplicitPlatforms |
When true, an empty PlatformAllowList is interpeted as 'no platforms' with the expectation that explict platforms will be added in plugin extensions
| TArray<FString> FModuleDescriptor::GameTargetAllowList |
List of allowed game targets
| TArray<FString> FModuleDescriptor::GameTargetDenyList |
List of disallowed game targets
| ELoadingPhase::Type FModuleDescriptor::LoadingPhase |
When should the module be loaded during the startup sequence? This is sort of an advanced setting.
| FName FModuleDescriptor::Name |
Name of this module
| TArray<FString> FModuleDescriptor::PlatformAllowList |
List of allowed platforms
List of allowed platform architectures
List of disallowed platform architectures
| TArray<FString> FModuleDescriptor::PlatformDenyList |
List of disallowed platforms
| TArray<FString> FModuleDescriptor::ProgramAllowList |
List of allowed programs
| TArray<FString> FModuleDescriptor::ProgramDenyList |
List of disallowed programs
| TArray<EBuildTargetType> FModuleDescriptor::TargetAllowList |
List of allowed targets
| TArray<EBuildConfiguration> FModuleDescriptor::TargetConfigurationAllowList |
List of allowed target configurations
| TArray<EBuildConfiguration> FModuleDescriptor::TargetConfigurationDenyList |
List of disallowed target configurations
| TArray<EBuildTargetType> FModuleDescriptor::TargetDenyList |
List of disallowed targets
| EHostType::Type FModuleDescriptor::Type |
Usage type of module