MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / Callback

Method Callback

Source/PCGExtendedToolkit/Private/PCGExHelpers.cpp:237–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void UPCGExComponentCallback::Callback(UActorComponent* InComponent)
238{
239 if (!CallbackFn) { return; }
240 if (bIsOnce)
241 {
242 auto Callback = MoveTemp(CallbackFn);
243 CallbackFn = nullptr;
244 Callback(InComponent);
245 }
246 else
247 {
248 CallbackFn(InComponent);
249 }
250}
251
252void UPCGExComponentCallback::BeginDestroy()
253{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected