Dynamic Reference Component
- Base:
- UActorComponent
- Type:
- UNDynamicReferencesComponent
- Header File:
- NexusDynamicReferences/Public/NDynamicReferencesComponent.h
A component which registers and unregisters the owning AActor with the UNDynamicReferencesSubsystem for future lookup.
Registration​
The component has settings for when the AActor is registered with the UNDynamicReferencesSubsystem and for when it is unregistered. These correspond to different states of the lifecycle of the component, allowing for some other logic to occur before the AActor is referenceable, for example.
Link Phase​
Utilizes a ENActorComponentLifecycleStart enumeration to determine when to register.
| Setting | Display | Behaviour |
|---|---|---|
ACLS_BeginPlay | Begin Play | Triggers registration during the components BeginPlay() call. |
ACLS_InitializeComponent | Initialize Component | Triggers registration during the components InitializeComponent() call. |
Break Phase​
Utilizes a ENActorComponentLifecycleEnd enumeration to determine when to unregister.
| Setting | Display | Behaviour |
|---|---|---|
ACLE_EndPlay | End Play | Triggers unregistering during the components EndPlay() call. |
ACLE_UninitializeComponent | Uninitialize Component | Triggers unregistering during the components UninitializeComponent() call. |
References​
There is no hard limit on the number of reference types (ENDynamicReference) you can apply to a given component.