MakeAttributeSP

Helper function for creating TAttributes from a const member function pointer, accessed through a weak pointer to the shared object

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/Attribute.h

Include

#include "Misc/Attribute.h"

Syntax

template<typename T, typename SourceType, typename SourceTypeOrBase, typename... PayloadTypes>
TAttribute< T > MakeAttributeSP
(
    const SourceType * InObject,
    T(SourceTypeOrBase::*)(PayloadTypes...) const InMethod,
    typename TDecay< PayloadTypes >::Type... InputPayload
)

Remarks

Helper function for creating TAttributes from a const member function pointer, accessed through a weak pointer to the shared object

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