FObjectInstancingGraph::InstancePropertyValue

Returns the component that has SourceComponent as its archetype, instancing the component as necessary.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/Class.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/CoreNative.cpp

Syntax

UObject * InstancePropertyValue
(
    class UObject * SourceComponent,
    class UObject * CurrentValue,
    class UObject * CurrentObject,
    bool bIsTransient,
    bool bCausesInstancing,
    bool bAllowSelfReference
)

Remarks

Returns the component that has SourceComponent as its archetype, instancing the component as necessary.

Returns

As with GetInstancedSubobject, above, but also deals with archetype creation and a few other special cases

Parameters

Parameter

Description

SourceComponent

the component to find the corresponding component instance for

CurrentValue

the component currently assigned as the value for the component property being instanced. Used when updating archetypes to ensure that the new instanced component replaces the existing component instance in memory.

CurrentObject

the object that owns the component property currently being instanced; this is NOT necessarily the object that should be the Outer for the new component.

bIsTransient

is this for a transient property?

bCausesInstancing

if true, then this property causes an instance to be created...if false, this is just a pointer to a uobject that should be remapped if the object is instanced for some other property

bAllowSelfReference

If true, instance the reference to the subobjectroot, so far only delegates remap a self reference

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