TAttribute::BindRaw

Binds an arbitrary function that will be called to generate this attribute's value on demand.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Misc/Attribute.h"

Syntax

template<class SourceType>
void BindRaw
(
    SourceType * InUserObject,
    typename FGetter::template TRawMethodDelegate_Const< SourceType >::FMethodPtr InMethodPtr
)

Remarks

Binds an arbitrary function that will be called to generate this attribute's value on demand. After binding, the attribute will no longer have a value that can be accessed directly, and instead the bound function will always be called to generate the value.

Parameters

Parameter

Description

InUserObject

Instance of the class that contains the member function you want to bind.

InMethodPtr

Member function to bind. The function's structure (return value, arguments, etc) must match IBoundAttributeDelegate's definition.

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