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.

NOTE: 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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback