Skip to main content

Dynamic Reference Component

Custom Icon
Base:
UActorComponent
Type:
UNDynamicRefComponent
Header File:
NexusDynamicRefs/Public/NDynamicRefComponent.h

A component which registers and unregisters the owning AActor with the UNDynamicRefSubsystem for future lookup.

Registration​

The component has settings for when the AActor is registered with the UNDynamicRefSubsystem 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
BeginPlayBegin PlayTriggers registration during the components BeginPlay() call.
InitializeComponentInitialize ComponentTriggers registration during the components InitializeComponent() call.

Break Phase​

Utilizes a ENActorComponentLifecycleEnd enumeration to determine when to unregister.

SettingDisplayBehaviour
EndPlayEnd PlayTriggers unregistering during the components EndPlay() call.
UninitializeComponentUninitialize ComponentTriggers unregistering during the components UninitializeComponent() call.

References​

There is no hard limit on the number of reference types (ENDynamicRef) you can apply to a given component.