UGameFrameworkComponentManager::AddComponentRequest

Adds a request to instantiate components on actors of the given classes.

Windows
MacOS
Linux

References

Module

ModularGameplay

Header

/Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Public/Components/GameFrameworkComponentManager.h

Include

#include "Components/GameFrameworkComponentManager.h"

Source

/Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Private/Components/GameFrameworkComponentManager.cpp

Syntax

TSharedPtr< FComponentRequestHandle > AddComponentRequest
(
    const TSoftClassPtr< AActor > & ReceiverClass,
    TSubclassOf< UActorComponent > ComponentClass
)

Remarks

Adds a request to instantiate components on actors of the given classes. Returns a handle that will keep the request "alive" until it is destructed, at which point the request is removed.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss