TBaseDynamicDelegate

Dynamic delegate template class (UObject-based, serializable).

Windows
MacOS
Linux

Inheritance Hierarchy

TScriptDelegate

TBaseDynamicDelegate

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl

Include

#include "Delegates/DelegateSignatureImpl.inl"

Syntax

template<typename TWeakPtr, typename RetValType, typename... ParamTypes>
class TBaseDynamicDelegate : public TScriptDelegate< TWeakPtr >

Remarks

Dynamic delegate template class (UObject-based, serializable). You'll use the various DECLARE_DYNAMIC_DELEGATE macros to create the actual delegate type, templated to the function signature the delegate is compatible with. Then, you can create an instance of that class when you want to assign functions to the delegate.

Constructors

Name Description

Public function

TBaseDynamicDelegate()

Default constructor

Public function

TBaseDynamicDelegate

(
    const TScriptDelegate< TWeakPtr >&...
)

Construction from an FScriptDelegate must be explicit.

Functions

Name Description

Public function

void

 

__Internal_BindDynamic

(
    UserClass* InUserObject,
    typename TMethodPtrResolver< UserCl...,
    FName InFunctionName
)

Binds a UObject instance and a UObject method address to this delegate.

Classes

Name

Description

Public class

TMethodPtrResolver

Templated helper class to define a typedef for user's method pointer, then used below

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