PropertyPathHelpers::SetPropertyValue

Set 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.

Choose your operating system:

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::SetPropertyValue
    (
        UObject * InContainer,
        const FCachedPropertyPath & InPropertyPath,
        const T & InValue
    )
}

Remarks

Set 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

InValue

The value to write from