IModularFeatures::GetModularFeature

Queries for a specific feature.

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

template<typename TModularFeature>
TModularFeature & GetModularFeature
(
    const FName Type
)

Remarks

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!

Returns

The feature.

Parameters

Parameter

Description

Type

The type of feature we're looking for