MakeAttributeRaw

Helper function for creating TAttributes from a non-const member function pointer, accessed through a raw pointer

Choose your operating system:

Windows

macOS

Linux

Deprecated

  • Attribute's Getter should be const.

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 > MakeAttributeRaw
(
    SourceType * InObject,
    T(SourceTypeOrBase::*)(PayloadTypes...) InMethod,
    typename TDecay< PayloadTypes >::Type... InputPayload
)

Remarks

Helper function for creating TAttributes from a non-const member function pointer, accessed through a raw pointer