PropertyPathHelpers::GetPropertyValue

Get the value and the leaf property represented by this property path.

Windows
MacOS
Linux

References

Module

PropertyPath

Header

/Engine/Source/Runtime/PropertyPath/Public/PropertyPathHelpers.h

Include

#include "PropertyPathHelpers.h"

Syntax

namespace PropertyPathHelpers
{
    template<typename T>
    bool PropertyPathHelpers::GetPropertyValue
    (
        UObject * InContainer,
        const FString & InPropertyPath,
        T & OutValue,
        FProperty *& OutProperty
    )
}

Remarks

Get the value and the leaf property represented by this property path. If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path. This has safety implications depending on the form of the path, so paths that are resolved over object boundaries or dynamic arrays will always use the slow path for safety.

Returns

true if the property value was successfully copied

Parameters

Parameter

Description

InContainer

The container object to resolve the property path against

InPropertyPath

The property path string

OutValue

The value to write to

OutProperty

The leaf property that the path resolved to

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