Navigation
API > API/Plugins > API/Plugins/ModularGameplay > API/Plugins/ModularGameplay/Components > API/Plugins/ModularGameplay/Components/UGameFrameworkComponentManager > API/Plugins/ModularGameplay/Components/UGameFrameworkComponentManager/RegisterAndCallF-
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 |
UFUNCTION&40;BlueprintCallable, Category&61;"InitState"&41;
bool RegisterAndCallForActorInitState
&40;
AActor &42; Actor,
FName FeatureName,
FGameplayTag RequiredState,
FActorInitStateChangedBPDelegate Delegate,
bool bCallImmediately
&41;
Remarks
Registers blueprint delegate for feature state change notifications on a specific actor and may call it immediately true if delegate was registered
Parameters
| Name | Description |
|---|---|
| Actor | The actor to listen for state changes to, if you don't have a specific actor call the Class version instead |
| FeatureName | If not empty, only listen to state changes for the specified feature |
| RequiredState | If specified, only activate if the init state of the feature is equal to or later than this |
| Delegate | Native delegate to call |
| bCallImmediately | If true and the actor feature is already in the specified state, call delegate immediately after registering |