Navigation
API > API/Plugins > API/Plugins/GameFeatures
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
| Name | IGameFeatureStateChangeObserver |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GameFeatures/Source/GameFeatures/Public/GameFeatureStateChangeObserver.h |
| Include Path | #include "GameFeatureStateChangeObserver.h" |
Syntax
class IGameFeatureStateChangeObserver
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnGameFeatureActivated
(
const UGameFeatureData* GameFeatureData, |
Invoked after a game feature plugin is activated. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeatureActivating
(
const UGameFeatureData* GameFeatureData, |
Invoked prior to activating a game feature plugin. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeatureCheckingStatus
(
const FString& PluginURL |
Invoked when going from the UnknownStatus state to the CheckingStatus state. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeatureDeactivating
(
const UGameFeatureData* GameFeatureData, |
Invoked prior to deactivating a game feature plugin. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeatureDownloading
(
const FString& PluginName, |
Invoked when content begins installing. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeatureLoading
(
const UGameFeatureData* GameFeatureData, |
Invoked in the early stages of the game feature plugin loading phase. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeaturePauseChange
(
const FString& PluginURL, |
Called whenever a GameFeature State either pauses or resumes work without transitioning out of that state. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeaturePostMounting
(
const FString& PluginName, |
Invoked at the end of the plugin mounting phase (whether it was successfully mounted or not) | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeaturePostPredownloading
(
const FString& PluginName, |
Invoked when pre-downloading content has finished. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeaturePredownloading
(
const FString& PluginName, |
Invoked when content begins installing via predownload. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeaturePreMounting
(
const FString& PluginName, |
Invoked prior to mounting a plugin (but after its install bundles become available, if any) | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeatureRegistering
(
const UGameFeatureData* GameFeatureData, |
Invoked after a game feature plugin has been registered. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeatureReleasing
(
const FString& PluginName, |
Invoked when content is released (the point it at which it is safe to remove it) | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeatureTerminating
(
const FString& PluginURL |
Invoked prior to terminating a game feature plugin. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeatureUnloading
(
const UGameFeatureData* GameFeatureData, |
Invoked after a game feature plugin is unloaded. | GameFeatureStateChangeObserver.h | |
virtual void OnGameFeatureUnregistering
(
const UGameFeatureData* GameFeatureData, |
Invoked prior to unregistering a game feature plugin. | GameFeatureStateChangeObserver.h |