MCPcopy Create free account
hub / github.com/Tencent/UnLua / AddTo

Method AddTo

Plugins/UnLua/Source/UnLua/Private/LuaDelegateHandler.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void ULuaDelegateHandler::AddTo(FMulticastDelegateProperty* InProperty, void* InDelegate)
38{
39 Delegate = InDelegate;
40 FScriptDelegate DynamicDelegate;
41 DynamicDelegate.BindUFunction(this, NAME_Dummy);
42 TMulticastDelegateTraits<FMulticastDelegateType>::AddDelegate(InProperty, MoveTemp(DynamicDelegate), nullptr, InDelegate);
43}
44
45UWorld* ULuaDelegateHandler::GetWorld() const
46{

Callers 1

AddMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected