Navigation
API > API/Plugins > API/Plugins/GameFeatures
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEngineSubsystem
- UGameFeaturesSubsystem
References
| Module | GameFeatures |
| Header | /Engine/Plugins/Experimental/GameFeatures/Source/GameFeatures/Public/GameFeaturesSubsystem.h |
| Include | #include "GameFeaturesSubsystem.h" |
Syntax
UCLASS&40;&41;
class UGameFeaturesSubsystem : public UEngineSubsystem
Remarks
The manager subsystem for game features
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddObserver
(
UObject* Observer |
||
| void | CancelGameFeatureStateChange
(
const FString& PluginURL, |
Attempt to cancel any state change. | |
| void | CancelGameFeatureStateChange
(
const FString& PluginURL |
Attempt to cancel any state change. | |
| void | ChangeGameFeatureTargetState
(
const FString& PluginURL, |
Changes the target state of a game feature plugin | |
| EGameFeaturePluginState | ConvertInitialFeatureStateToTargetState
(
EBuiltInAutoState InitialState |
||
| void | DeactivateGameFeaturePlugin
(
const FString& PluginURL |
Deactivates the specified plugin | |
| void | DeactivateGameFeaturePlugin
(
const FString& PluginURL, |
Deactivates the specified plugin | |
| EBuiltInAutoState | DetermineBuiltInInitialFeatureState
(
TSharedPtr< FJsonObject > Descriptor, |
Determine the initial feature state for a built-in plugin | |
| 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 | ForEachRegisteredGameFeature
(
Func InFunc |
Calls the compile-time lambda on each registered game feature data of the specified type | |
| UGameFeaturesSubsystem & | Get () |
||
| 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
(
const TSharedRef< IPlugin >& Plugin, |
Gets relevant properties out of a uplugin file | |
| 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 | |
| FString | GetPluginURL_FileProtocol
(
const FString& PluginDescriptorPath |
Construct a 'file:' Plugin URL using from the 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, |
Construct a 'installbundle:' Plugin URL using from the PluginName and required install bundles | |
| 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, |
Construct a 'installbundle:' Plugin URL using from the PluginName and required install bundles | |
| FString | GetPluginURL_InstallBundleProtocol
(
const FString& PluginName, |
Construct a 'installbundle:' Plugin URL using from the PluginName and required install bundles | |
| bool | GetPluginURLByName
(
const FString& PluginName, |
If the specified plugin is known by the game feature system, returns 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 | |
| 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 | 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
(
const FString& PluginURL, |
Loads a single game feature plugin and activates it. | |
| 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
(
const FString& PluginURL, |
Loads a single game feature plugin. | |
| void | ReleaseGameFeaturePlugin
(
const FString& PluginURL |
Releases any game data stored for this GameFeaturePlugin. | |
| void | ReleaseGameFeaturePlugin
(
const FString& PluginURL, |
Releases any game data stored for this GameFeaturePlugin. | |
| void | RemoveObserver
(
UObject* Observer |
||
| void | TerminateGameFeaturePlugin
(
const FString& PluginURL |
Terminate the GameFeaturePlugin and remove all associated plugin tracking data. | |
| void | TerminateGameFeaturePlugin
(
const FString& PluginURL, |
Terminate the GameFeaturePlugin and remove all associated plugin tracking data. | |
| void | UninstallGameFeaturePlugin
(
const FString& PluginURL |
Uninstalls any game data stored for this GameFeaturePlugin and terminates the GameFeaturePlugin. | |
| 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, |
Unloads the specified game feature plugin. | |
| void | UnloadGameFeaturePlugin
(
const FString& PluginURL, |
Unloads the specified game feature plugin. | |
| void | UpdateGameFeaturePluginURL
(
const FString& NewPluginURL |
Changes the URL data of a game feature plugin. | |
| void | UpdateGameFeaturePluginURL
(
const FString& NewPluginURL, |
Changes the URL data of a game feature plugin. |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
Implement this for initialization of instances of the system |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EObserverCallback |
Typedefs
| Name | Description |
|---|---|
| FBuiltInPluginAdditionalFilters |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | GetPluginURLForBuiltInPluginByName
(
const FString& PluginName, |
Use GetPluginURLByName instead |