Navigation
API > API/Plugins > API/Plugins/GameFeatures
Inheritance Hierarchy
- UEngineSubsystem
- UGameFeaturesSubsystem
References
| Module | GameFeatures |
| Header | /Engine/Plugins/Runtime/GameFeatures/Source/GameFeatures/Public/GameFeaturesSubsystem.h |
| Include | #include "GameFeaturesSubsystem.h" |
Syntax
UCLASS ()
class UGameFeaturesSubsystem : public UEngineSubsystem
Remarks
The manager subsystem for game features
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddObserver
(
UObject* Observer |
||
| void | CancelGameFeatureStateChange
(
TConstArrayView< FString > PluginURLs, |
||
| void | CancelGameFeatureStateChange
(
const FString& PluginURL, |
||
| void | CancelGameFeatureStateChange
(
const FString& PluginURL |
Attempt to cancel any state change. | |
| void | ChangeGameFeatureTargetState
(
const FString& PluginURL, |
||
| void | ChangeGameFeatureTargetState
(
const FString& PluginURL, |
Changes the target state of a game feature plugin | |
| void | ChangeGameFeatureTargetState
(
TConstArrayView< FString > PluginURLs, |
||
| EGameFeaturePluginState | ConvertInitialFeatureStateToTargetState
(
EBuiltInAutoState InitialState |
||
| void | DeactivateGameFeaturePlugin
(
const FString& PluginURL, |
||
| void | DeactivateGameFeaturePlugin
(
const FString& PluginURL |
Deactivates the specified plugin | |
| void | Deinitialize () |
||
| EBuiltInAutoState | DetermineBuiltInInitialFeatureState
(
TSharedPtr< FJsonObject > Descriptor, |
Determine the initial feature state for a built-in plugin | |
| bool | DoesGameFeaturePluginNeedUpdate
(
const FString& PluginURL |
Determines if a plugin is up to date or needs an update. Returns true if an update is available. | |
| void | FilterInactivePluginAssets
(
TArray< FAssetIdentifier >& AssetsToFilter |
Removes assets that are in plugins we know to be inactive. Order is not maintained. | |
| void | FilterInactivePluginAssets
(
TArray< FAssetData >& AssetsToFilter |
Removes assets that are in plugins we know to be inactive. Order is not maintained. | |
| void | FixPluginPackagePath
(
FString& PathToFix, |
Fixes a package path/directory to either be relative to plugin root or not. | |
| void | ForEachActiveGameFeature
(
Func InFunc |
Calls the compile-time lambda on each active game feature data of the specified type | |
| void | ForEachGameFeature
(
TFunctionRef< void(FGameFeatureInfo&&)> Visitor |
||
| void | ForEachRegisteredGameFeature
(
Func InFunc |
Calls the compile-time lambda on each registered game feature data of the specified type | |
| UGameFeaturesSubsystem & | Get () |
||
| bool | GetBuiltInGameFeaturePluginDetails
(
const TSharedRef< IPlugin >& Plugin, |
Gets relevant properties out of a uplugin file. Should only be used for built-in GFPs | |
| bool | GetBuiltInGameFeaturePluginDetails
(
const TSharedRef< IPlugin >& Plugin, |
Gets relevant properties out of a uplugin file. Should only be used for built-in GFPs | |
| bool | GetBuiltInGameFeaturePluginURL
(
const TSharedRef< IPlugin >& Plugin, |
Gets the URL for the given plugin, applying game-specific policies where appropriate. | |
| const UGameFeatureData * | GetGameFeatureDataForActivePluginByURL
(
const FString& PluginURL |
Returns the game feature data for an active plugin specified by PluginURL | |
| void | GetGameFeatureDataForActivePlugins
(
TArray< const UGameFeatureData* >& OutActivePluginFeatureDatas |
Returns all the active plugins GameFeatureDatas | |
| const UGameFeatureData * | GetGameFeatureDataForRegisteredPluginByURL
(
const FString& PluginURL, |
Returns the game feature data for a registered plugin specified by PluginURL | |
| bool | GetGameFeaturePluginDetails
(
FString PluginURL, |
Gets relevant properties out of a uplugin file if it's installed | |
| bool | GetGameFeaturePluginDetails
(
const TSharedRef< IPlugin >& Plugin, |
Gets relevant properties out of a uplugin file | |
| bool | GetGameFeaturePluginInstallPercent
(
TConstArrayView< FString > PluginURLs, |
||
| bool | GetGameFeaturePluginInstallPercent
(
const FString& PluginURL, |
Gets the Install_Percent for single game feature plugin if it is active. | |
| void | GetLoadedGameFeaturePluginFilenamesForCooking
(
TArray< FString >& OutLoadedPluginFilenames |
Returns the list of plugin filenames that have progressed beyond installed. | |
| FString | GetPluginFilenameFromPluginURL
(
const FString& PluginURL |
Get the plugin path from the plugin URL | |
| EGameFeaturePluginState | GetPluginState
(
FGameFeaturePluginIdentifier PluginIdentifier |
Returns the current state of the state machine for the specified plugin PluginIdentifier | |
| EGameFeaturePluginState | GetPluginState
(
const FString& PluginURL |
Returns the current state of the state machine for the specified plugin URL | |
| void | GetPluginsToCook
(
TSet< FString >& OutPlugins |
Used during a DLC cook to determine which plugins should be cooked | |
| FString | GetPluginURL_FileProtocol
(
const FString& PluginDescriptorPath |
Construct a 'file:' Plugin URL using from the PluginDescriptorPath | |
| FString | GetPluginURL_FileProtocol
(
const FString& PluginDescriptorPath, |
||
| FString | GetPluginURL_InstallBundleProtocol
(
const FString& PluginName, |
Construct a 'installbundle:' Plugin URL using from the PluginName and required install bundles | |
| FString | GetPluginURL_InstallBundleProtocol
(
const FString& PluginName, |
||
| FString | GetPluginURL_InstallBundleProtocol
(
const FString& PluginName, |
||
| FString | GetPluginURL_InstallBundleProtocol
(
const FString& PluginName, |
||
| FString | GetPluginURL_InstallBundleProtocol
(
const FString& PluginName, |
||
| bool | GetPluginURLByName
(
FStringView PluginName, |
If the specified plugin is known by the game feature system, returns the URL used to identify it | |
| bool | GetPluginURLForBuiltInPluginByName
(
const FString& PluginName, |
If the specified plugin is a built-in plugin, return the URL used to identify it. | |
| EGameFeaturePluginProtocol | GetPluginURLProtocol
(
FStringView PluginURL |
Returns the plugin protocol for the specified URL | |
| T & | GetPolicy () |
Returns the game-specific policy for managing game feature plugins | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
||
| bool | IsGameFeaturePluginActive
(
const FString& PluginURL, |
Determines if a plugin is in the Active state. | |
| bool | IsGameFeaturePluginInstalled
(
const FString& PluginURL |
Determines if a plugin is in the Installed state (or beyond) | |
| bool | IsGameFeaturePluginLoaded
(
const FString& PluginURL |
Determines if a plugin is in the Loaded state (or beyond) | |
| bool | IsGameFeaturePluginMounted
(
const FString& PluginURL |
Determines if a plugin is beyond the Mounting state | |
| bool | IsGameFeaturePluginRegistered
(
const FString& PluginURL, |
Determines if a plugin is in the Registered state (or beyond) | |
| bool | IsPluginURLProtocol
(
FStringView PluginURL, |
Tests whether the plugin URL is the specified protocol | |
| void | LoadAndActivateGameFeaturePlugin
(
TConstArrayView< FString > PluginURLs, |
||
| void | LoadAndActivateGameFeaturePlugin
(
const FString& PluginURL, |
Loads a single game feature plugin and activates it. | |
| void | LoadAndActivateGameFeaturePlugin
(
const FString& PluginURL, |
||
| void | LoadBuiltInGameFeaturePlugin
(
const TSharedRef< IPlugin >& Plugin, |
Loads a built-in game feature plugin if it passes the specified filter | |
| void | LoadBuiltInGameFeaturePlugins
(
FBuiltInPluginAdditionalFilters AdditionalFilter, |
Loads all built-in game feature plugins that pass the specified filters | |
| TSharedPtr< FStreamableHandle > | LoadGameFeatureData
(
const FString& GameFeatureToLoad, |
Loads the specified game feature data and its bundles | |
| void | LoadGameFeaturePlugin
(
TConstArrayView< FString > PluginURLs, |
||
| void | LoadGameFeaturePlugin
(
const FString& PluginURL, |
Loads a single game feature plugin. | |
| void | LoadGameFeaturePlugin
(
const FString& PluginURL, |
||
| bool | ParsePluginURL
(
FStringView PluginURL, |
Parse the plugin URL into subparts | |
| bool | ParsePluginURLOptions
(
FStringView URLOptionsString, |
||
| bool | ParsePluginURLOptions
(
FStringView URLOptionsString, |
||
| bool | ParsePluginURLOptions
(
FStringView URLOptionsString, |
Parse options from a plugin URL or the options subpart of the plugin URL | |
| bool | ParsePluginURLOptions
(
FStringView URLOptionsString, |
||
| TSharedRef< FGameFeaturePluginPredownloadHandle > | PredownloadGameFeaturePlugins
(
TConstArrayView< FString > PluginURLs, |
Pre-install any required game feature data, which can be useful for larger payloads. | |
| void | RegisterGameFeaturePlugin
(
const FString& PluginURL, |
Registers a single game feature plugin. | |
| void | RegisterGameFeaturePlugin
(
const FString& PluginURL, |
||
| void | RegisterGameFeaturePlugin
(
TConstArrayView< FString > PluginURLs, |
||
| void | ReleaseGameFeaturePlugin
(
const FString& PluginURL |
Releases any game data stored for this GameFeaturePlugin. | |
| void | ReleaseGameFeaturePlugin
(
const FString& PluginURL, |
||
| void | RemoveObserver
(
UObject* Observer |
||
| void | TerminateGameFeaturePlugin
(
const FString& PluginURL |
Terminate the GameFeaturePlugin and remove all associated plugin tracking data. | |
| void | TerminateGameFeaturePlugin
(
const FString& PluginURL, |
||
| void | UninstallGameFeaturePlugin
(
const FString& PluginURL, |
||
| void | UninstallGameFeaturePlugin
(
const FString& PluginURL, |
Uninstalls any game data stored for this GameFeaturePlugin and terminates the GameFeaturePlugin. | |
| void | UnloadGameFeatureData
(
const UGameFeatureData* GameFeatureToUnload |
||
| void | UnloadGameFeaturePlugin
(
const FString& PluginURL, |
||
| void | UnloadGameFeaturePlugin
(
const FString& PluginURL, |
Unloads the specified game feature plugin. | |
| UE::GameFeatures::FResult | UpdateGameFeatureProtocolOptions
(
const FString& PluginURL, |
Changes the protocol options of a game feature plugin. | |
| bool | WasGameFeaturePluginLoadedAsBuiltIn
(
const FString& PluginURL |
Was this game feature plugin loaded using the LoadBuiltInGameFeaturePlugin path |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EObserverCallback |
Typedefs
| Name | Description |
|---|---|
| FBuiltInPluginAdditionalFilters |