Navigation
API > API/Plugins > API/Plugins/GameFeatures
Inheritance Hierarchy
- IGameFeatureStateChangeObserver
- UConversationRegistry
- UGameFeatureOptionalContentInstaller
References
| Module | GameFeatures |
| Header | /Engine/Plugins/Runtime/GameFeatures/Source/GameFeatures/Public/GameFeatureStateChangeObserver.h |
| Include | #include "GameFeatureStateChangeObserver.h" |
Syntax
class IGameFeatureStateChangeObserver
Remarks
This class is meant to be overridden in your game to handle game-specific reactions to game feature plugins being mounted or unmounted
Generally you should prefer to use UGameFeatureAction instances on your game feature data asset instead of this, especially if any data is involved
If you do use these, create them in your UGameFeaturesProjectPolicies subclass and register them via AddObserver / RemoveObserver on UGameFeaturesSubsystem
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | OnGameFeatureActivating
(
const UGameFeatureData* GameFeatureData, |
Invoked prior to activating a game feature plugin. | |
| void | OnGameFeatureCheckingStatus
(
const FString& PluginURL |
Invoked when going from the UnknownStatus state to the CheckingStatus state. | |
| void | OnGameFeatureDeactivating
(
const UGameFeatureData* GameFeatureData, |
Invoked prior to deactivating a game feature plugin. | |
| void | OnGameFeatureDownloading
(
const FString& PluginName, |
Invoked when content begins installing. | |
| void | OnGameFeatureLoading
(
const UGameFeatureData* GameFeatureData, |
Invoked in the early stages of the game feature plugin loading phase. | |
| void | OnGameFeaturePauseChange
(
const FString& PluginURL, |
Called whenever a GameFeature State either pauses or resumes work without transitioning out of that state. | |
| void | OnGameFeaturePostMounting
(
const FString& PluginName, |
Invoked at the end of the plugin mounting phase (whether it was successfully mounted or not) | |
| void | OnGameFeaturePredownloading
(
const FString& PluginName, |
Invoked when content begins installing via predownload. | |
| void | OnGameFeaturePreMounting
(
const FString& PluginName, |
Invoked prior to mounting a plugin (but after its install bundles become available, if any) | |
| void | OnGameFeatureRegistering
(
const UGameFeatureData* GameFeatureData, |
Invoked after a game feature plugin has been registered. | |
| void | OnGameFeatureReleasing
(
const FString& PluginName, |
Invoked when content is released (the point it at which it is safe to remove it) | |
| void | OnGameFeatureTerminating
(
const FString& PluginURL |
Invoked prior to terminating a game feature plugin. | |
| void | OnGameFeatureUnloading
(
const UGameFeatureData* GameFeatureData, |
Invoked after a game feature plugin is unloaded. | |
| void | OnGameFeatureUnregistering
(
const UGameFeatureData* GameFeatureData, |
Invoked prior to unregistering a game feature plugin. |