![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IModularFeatures.h>
Inheritance diagram for IModularFeatures:Classes | |
| struct | FScopedLockModularFeatureList |
Static Public Member Functions | |
| static CORE_API IModularFeatures & | Get () |
Public interface to all known modular features
|
inlinevirtual |
Virtual destructor, to make polymorphism happy.
| IModularFeatures::DECLARE_EVENT_TwoParams | ( | IModularFeatures | , |
| FOnModularFeatureRegistered | , | ||
| const FName & | , | ||
| class IModularFeature * | |||
| ) |
Event used to inform clients that a modular feature has been registered.
| Type | The name of the modular feature type being registered. |
| IModularFeatures::DECLARE_EVENT_TwoParams | ( | IModularFeatures | , |
| FOnModularFeatureUnregistered | , | ||
| const FName & | , | ||
| class IModularFeature * | |||
| ) |
Event used to inform clients that a modular feature has been unregistered.
| Type | The name of the modular feature type being unregistered. |
|
static |
Static: Access singleton instance
|
inline |
Queries for a specific feature. If multiple implementations of the same feature were registered, this will return the first. Will assert or crash if the specified feature is not available! You should call IsModularFeatureAvailable() first!
| Type | The type of feature we're looking for |
|
pure virtual |
Queries for a specific modular feature. Returns NULL if the feature is not available. Does not assert. Usually you should just call GetModularFeature instead, after calling IsModularFeatureAvailable().
| Type | The type of feature we're looking for |
| Index | The index of the implementation (there may be multiple implementations of the same feature registered.) |
Implemented in FModularFeatures.
|
pure virtual |
Returns the number of registered implementations of the specified feature type.
| Type | The type of feature we're looking for |
Implemented in FModularFeatures.
|
inline |
Queries for one or more implementations of a single feature. If no feature of this type is registered, will return an empty array.
| Type | The type of feature we're looking for |
Checks to see if the specified feature is available
| Type | The type of feature we're looking for |
Lock modular features for access from another thread
Implemented in FModularFeatures.
|
pure virtual |
Implemented in FModularFeatures.
|
pure virtual |
Implemented in FModularFeatures.
|
pure virtual |
Registers a feature. Usually called by plugins to augment or replace existing modular features.
| Type | The type of feature we're registering |
| ModularFeature | Interface to the modular feature object. We do not assume ownership of this object. It's up to you to keep it allocated until it is unregistered later on. |
Implemented in FModularFeatures.
Unlock modular features when finished accessing from another thread
Implemented in FModularFeatures.
|
pure virtual |
Unregisters a feature that was registered earlier on. After unregistering a feature, other systems will no longer be able to gain access to it through this interface.
| Type | The type of feature we're unregistering |
| ModularFeature | Interface to the modular feature object |
Implemented in FModularFeatures.