MakeAttributeLambda

Helper function for creating TAttributes from a lambda [TAttribute](API\Runtime\Core\Misc\TAttribute) FloatAttribute = MakeAttributeLambda([]{ return 10.f; });Helper function for creating TAttributes from a lambda [TAttribute](API\Runtime\Core\Misc\TAttribute) FloatAttribute = MakeAttributeLambda([]{ return 10.f; });

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Misc/Attribute.h"

Syntax

template<typename LambdaType, typename... PayloadTypes>
decltype(auto) MakeAttributeLambda
(
    LambdaType && InCallable,
    PayloadTypes &&... InputPayload
)

Remarks

Helper function for creating TAttributes from a lambda TAttribute FloatAttribute = MakeAttributeLambda([]{ return 10.f; });Helper function for creating TAttributes from a lambda TAttribute FloatAttribute = MakeAttributeLambda([]{ return 10.f; });

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