IModularFeatures

Public interface to all known modular features

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Features/IModularFeatures.h

Include

#include "Features/IModularFeatures.h"

Syntax

class IModularFeatures

Remarks

Public interface to all known modular features

Destructors

Name Description

Public function Virtual

~IModularFeatures()

Virtual destructor, to make polymorphism happy.

Functions

Name Description

Public function Static

IModularFeat...

 

Get()

Static: Access singleton instance

Public function

TModularFeat...

 

GetModularFeature

(
    const FName Type
)

Queries for a specific feature.

Public function

IModularFeat...

 

GetModularFeatureImplementation

(
    const FName Type,
    const int32 Index
)

Queries for a specific modular feature.

Public function

int32

 

GetModularFeatureImplementationCount

(
    const FName Type
)

Returns the number of registered implementations of the specified feature type.

Public function

TArray< TMod...

 

GetModularFeatureImplementations

(
    const FName Type
)

Queries for one or more implementations of a single feature.

Public function

bool

 

IsModularFeatureAvailable

(
    const FName Type
)

Checks to see if the specified feature is available

Public function

FOnModularFe...

 

OnModularFeatureRegistered()

Public function

FOnModularFe...

 

OnModularFeatureUnregistered()

Public function

void

 

RegisterModularFeature

(
    const FName Type,
    IModularFeature* ModularFeatur...
)

Registers a feature. Usually called by plugins to augment or replace existing modular features.

Public function

void

 

UnregisterModularFeature

(
    const FName Type,
    IModularFeature* ModularFeatur...
)

Unregisters a feature that was registered earlier on.

Classes

Name

Description

Public class

FOnModularFeatureRegistered

Event used to inform clients that a modular feature has been registered.

Public class

FOnModularFeatureUnregistered

Event used to inform clients that a modular feature has been unregistered.