Navigation
API > API/Plugins > API/Plugins/ModularGameplay > API/Plugins/ModularGameplay/Components > API/Plugins/ModularGameplay/Components/UGameFrameworkComponentManager > API/Plugins/ModularGameplay/Components/UGameFrameworkComponentManager/RegisterAndCallF-_1
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 |
FDelegateHandle RegisterAndCallForClassInitState
&40;
const TSoftClassPtr< AActor > & ActorClass,
FName FeatureName,
FGameplayTag RequiredState,
FActorInitStateChangedDelegate Delegate,
bool bCallImmediately
&41;
Remarks
Registers native delegate for feature state change notifications on a class of actors and may call it immediately DelegateHandle used for later removal
Parameters
| Name | Description |
|---|---|
| ActorClass | Name of an actor class to listen for changes to |
| 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 |