TSparseDynamicDelegate::__Internal_AddUniqueDynamic

Binds a [UObject](API\Runtime\CoreUObject\UObject\UObject) instance and a [UObject](API\Runtime\CoreUObject\UObject\UObject) method address to this multi-cast delegate, but only if it hasn't been bound before.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/SparseDelegate.h

Include

#include "UObject/SparseDelegate.h"

Syntax

template<class UserClass>
void __Internal_AddUniqueDynamic
(
    UserClass * InUserObject,
    typename FDelegate::template TMethodPtrResolver< UserClass >::FMethodPtr InMethodPtr,
    FName InFunctionName
)

Remarks

Binds a UObject instance and a UObject method address to this multi-cast delegate, but only if it hasn't been bound before.

Do not call this function directly. Instead, call AddUniqueDynamic() which is a macro proxy function that automatically sets the function name string for the caller.

Parameters

Parameter

Description

InUserObject

UObject instance

InMethodPtr

Member function address pointer

InFunctionName

Name of member function, without class name

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss