TBaseMulticastDelegate< void, ParamTypes... >::AddWeakLambda

Adds a weak object C++ lambda delegate technically this works for any functor types, but lambdas are the primary use case

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Delegates/DelegateSignatureImpl.inl"

Syntax

template<typename UserClass, typename FunctorType, typename... VarTypes>
FDelegateHandle AddWeakLambda
(
    UserClass * InUserObject,
    FunctorType && InFunctor,
    VarTypes... Vars
)

Remarks

Adds a weak object C++ lambda delegate technically this works for any functor types, but lambdas are the primary use case

Parameters

Parameter

Description

InUserObject

User object to bind to

InFunctor

Functor (e.g. Lambda)

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