UVariant::GetDependency

Returning by reference in blueprint doesn't seem to work if we want to later modify the [FVariantDependency](API\Plugins\VariantManagerContent\FVariantDependency), so here we leave the return type without UPARAM(ref) so C++ code can use it as ref, while this function in blueprint returns by value

Windows
MacOS
Linux

References

Module

VariantManagerContent

Header

/Engine/Plugins/Enterprise/VariantManagerContent/Source/VariantManagerContent/Public/Variant.h

Include

#include "Variant.h"

Source

/Engine/Plugins/Enterprise/VariantManagerContent/Source/VariantManagerContent/Private/Variant.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, BlueprintPure, Category="Variant|Dependencies",
          Meta=(ToolTip="Get the dependency at index 'Index' by value. Will crash if index is invalid"))
FVariantDependency & GetDependency
(
    int32 Index
)

Remarks

Returning by reference in blueprint doesn't seem to work if we want to later modify the FVariantDependency, so here we leave the return type without UPARAM(ref) so C++ code can use it as ref, while this function in blueprint returns by value

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