FObjectInstancingGraph

References

Module

CoreUObject

Header

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

Include

#include "UObject/Class.h"

Syntax

struct FObjectInstancingGraph

Constructors

Name Description

Public function

FObjectInstancingGraph

(
    bool bDisableInstancing
)

Default Constructor

Public function

FObjectInstancingGraph

(
    EObjectInstancingGraphOptions InOpt...
)

Constructor with options

Public function

FObjectInstancingGraph

(
    UObject* DestinationSubobjectR...,
    EObjectInstancingGraphOptions InOpt...
)

Standard constructor

Functions

Name Description

Public function

void

 

AddNewInstance

(
    UObject* ObjectInstance,
    UObject* InArchetype
)

Adds an object instance to the map of source objects to their instances.

Public function

void

 

AddNewObject

(
    UObject* ObjectInstance,
    UObject* InArchetype
)

Adds a partially built object instance to the map(s) of source objects to their instances.

Public function

void

 

AddPropertyToSubobjectExclusionList

(
    const FProperty* Property
)

Adds a member variable property that should not instantiate subobjects

Public function

void

 

EnableSubobjectInstancing

(
    bool bEnabled
)

Enables / disables component instancing.

Public function

void

 

ForEachObjectInstance

(
    Predicate Pred
)

Allows looping over instances that were created during this instancing.

Public function

UObject *...

 

GetDestinationObject

(
    UObject* SourceObject
)

Finds the destination object instance corresponding to the specified source object.

Public function Const

const UObjec...

 

GetDestinationRoot()

Returns the DestinationRoot for this instancing graph.

Public function Const

bool

 

HasDestinationRoot()

Returns whether this instancing graph has a valid destination root.

Public function

UObject *...

 

InstancePropertyValue

(
    UObject* SourceComponent,
    UObject* CurrentValue,
    UObject* CurrentObject,
    EInstancePropertyValueFlags Flags
)

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

Public function Const

bool

 

IsPropertyInSubobjectExclusionList

(
    const FProperty* Property
)

Checks if a member variable property is in subobject instantiation exclusion list

Public function Const

bool

 

IsSubobjectInstancingEnabled()

Returns whether component instancing is enabled

Public function

void

 

RetrieveObjectInstances

(
    UObject* SearchOuter,
    TArray< class UObject* >& out...
)

Retrieves a list of objects that have the specified Outer

Public function

void

 

SetDestinationRoot

(
    UObject* DestinationSubobjectR...,
    UObject* InSourceRoot
)

Sets the DestinationRoot for this instancing graph.

Public function

void

 

SetLoadingObject

(
    bool bIsLoading
)

Sets whether DestinationRoot is currently being loaded from disk.

Deprecated Functions

Name Description

Public function

UObject *...

 

InstancePropertyValue

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

This overload of InstancePropertyValue has been deprecated, please call the overload that takes flags instead.

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