Descriptor for plugins. 更多...
#include <PluginDescriptor.h>
Public 成员函数 | |
| FPluginDescriptor () | |
| Constructor. | |
| bool | Load (const FString &FileName, FText &OutFailReason) |
| Loads the descriptor from the given file. | |
| bool | Read (const FJsonObject &Object, FText &OutFailReason) |
| Reads the descriptor from the given JSON object | |
| bool | Read (const FString &Text, FText &OutFailReason) |
| Reads the descriptor from the given string | |
| bool | Save (const FString &FileName, FText &OutFailReason) const |
| Saves the descriptor from the given file. | |
| bool | SupportsTargetPlatform (const FString &Platform) const |
| Determines whether the plugin supports the given platform | |
| void | Write (FString &Text) const |
| Writes a descriptor to JSON | |
| void | Write (TJsonWriter<> &Writer) const |
| Writes a descriptor to JSON | |
Public 属性 | |
| bool | bCanContainContent |
| Can this plugin contain content? | |
| bool | bExplicitlyLoaded |
| When true, this plugin's modules will not be loaded automatically nor will it's content be mounted automatically. 更多... | |
| bool | bInstalled |
| Signifies that the plugin was installed on top of the engine | |
| bool | bIsBetaVersion |
| Marks the plugin as beta in the UI | |
| bool | bIsExperimentalVersion |
| Marks the plugin as experimental in the UI | |
| bool | bIsHidden |
| For auto-generated plugins that should not be listed in the plugin browser for users to disable freely. | |
| bool | bIsPluginExtension |
| If true, this plugin from a platform extension extending another plugin | |
| bool | bRequiresBuildPlatform |
| For plugins that are under a platform folder (eg. 更多... | |
| FString | Category |
| The name of the category this plugin | |
| FString | CreatedBy |
| The company or individual who created this plugin. 更多... | |
| FString | CreatedByURL |
| Hyperlink URL string for the company or individual who created this plugin. 更多... | |
| FString | Description |
| Description of the plugin | |
| FString | DocsURL |
| Documentation URL string. | |
| EPluginEnabledByDefault | EnabledByDefault |
| Whether this plugin should be enabled by default for all projects | |
| FString | EngineVersion |
| Version of the engine that this plugin is compatible with | |
| FString | FriendlyName |
| Friendly name of the plugin | |
| TArray< FLocalizationTargetDescriptor > | LocalizationTargets |
| List of all localization targets associated with this plugin | |
| FString | MarketplaceURL |
| Marketplace URL for this plugin. 更多... | |
| TArray< FModuleDescriptor > | Modules |
| List of all modules associated with this plugin | |
| FString | ParentPluginName |
| If specified, this is the real plugin that this one is just extending | |
| TArray< FPluginReferenceDescriptor > | Plugins |
| Dependent plugins | |
| FCustomBuildSteps | PostBuildSteps |
| Post-build steps for each host platform | |
| FCustomBuildSteps | PreBuildSteps |
| Pre-build steps for each host platform | |
| TArray< FString > | SupportedPrograms |
| List of programs that are supported by this plugin. | |
| TArray< FString > | SupportedTargetPlatforms |
| Controls a subset of platforms that can use this plugin, and which ones will stage the .uplugin file and content files. 更多... | |
| FString | SupportURL |
| Support URL/email for this plugin. | |
| int32 | Version |
| Version number for the plugin. 更多... | |
| FString | VersionName |
| Name of the version for this plugin. 更多... | |
Descriptor for plugins.
Contains all the information contained within a .uplugin file.
| bool FPluginDescriptor::bExplicitlyLoaded |
When true, this plugin's modules will not be loaded automatically nor will it's content be mounted automatically.
It will load/mount when explicitly requested and LoadingPhases will be ignored
| bool FPluginDescriptor::bRequiresBuildPlatform |
For plugins that are under a platform folder (eg.
/PS4/), determines whether compiling the plugin requires the build platform and/or SDK to be available
| FString FPluginDescriptor::CreatedBy |
The company or individual who created this plugin.
This is an optional field that may be displayed in the user interface.
| FString FPluginDescriptor::CreatedByURL |
Hyperlink URL string for the company or individual who created this plugin.
This is optional.
| FString FPluginDescriptor::MarketplaceURL |
Marketplace URL for this plugin.
This URL will be embedded into projects that enable this plugin, so we can redirect to the marketplace if a user doesn't have it installed.
Controls a subset of platforms that can use this plugin, and which ones will stage the .uplugin file and content files.
Generally, for code plugins, it should be the union of platforms that the modules in the plugin are compiled for.
| int32 FPluginDescriptor::Version |
Version number for the plugin.
The version number must increase with every version of the plugin, so that the system can determine whether one version of a plugin is newer than another, or to enforce other requirements. This version number is not displayed in front-facing UI. Use the VersionName for that.
| FString FPluginDescriptor::VersionName |
Name of the version for this plugin.
This is the front-facing part of the version number. It doesn't need to match the version number numerically, but should be updated when the version number is increased accordingly.