Skip to main content

Dynamic Reference Component

Custom Icon
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.

Utilizes a ENActorComponentLifecycleStart enumeration to determine when to register.

SettingDisplayBehaviour
ACLS_BeginPlayBegin PlayTriggers registration during the components BeginPlay() call.
ACLS_InitializeComponentInitialize ComponentTriggers registration during the components InitializeComponent() call.

Break Phase​

Utilizes a ENActorComponentLifecycleEnd enumeration to determine when to unregister.

SettingDisplayBehaviour
ACLE_EndPlayEnd PlayTriggers unregistering during the components EndPlay() call.
ACLE_UninitializeComponentUninitialize ComponentTriggers 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.