FProperty::ContainerPtrToValuePtr

Get the pointer to property value in a supplied 'container'.

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UnrealType.h

Include

#include "UObject/UnrealType.h"

Syntax

template<typename ValueType>
ValueType * ContainerPtrToValuePtr
(
    UObject * ContainerPtr,
    int32 ArrayIndex
) const

Remarks

Get the pointer to property value in a supplied 'container'. You can only call this function on a UObject* or a uint8*. If the property you want is a 'top level' UObject property, you must call the function passing in a UObject* and not a uint8*. There are checks inside the function to vertify this.

Parameters

Parameter

Description

ContainerPtr

UObject or uint8 to container of property value

ArrayIndex

In array case, index of array element we want

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