FSlateObjectReferenceCollector

Used to gather all the referenced UObjects used by Slate when rendering a frame.

Windows
MacOS
Linux

Inheritance Hierarchy

FReferenceCollector

FSlateObjectReferenceCollector

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/SlateObjectReferenceCollector.h

Include

#include "Rendering/SlateObjectReferenceCollector.h"

Syntax

class FSlateObjectReferenceCollector : public FReferenceCollector

Remarks

Used to gather all the referenced UObjects used by Slate when rendering a frame. We're forced to do this because several draw calls only use resources for a frame and then allow them to be garbage collected, so Slate needs to keep those objects alive for the duration that they are used.

Variables

Name Description

Public variable

TArray< UObject...

 

ReferencedObjects

Constructors

Name Description

Public function

FSlateObjectReferenceCollector

(
    TArray< UObject* >& InReferen...
)

Overridden from FReferenceCollector

Name Description

Public function Virtual

void

 

HandleObjectReference

(
    UObject*& InObject,
    const UObject* InReferencingOb...,
    const FProperty* InReferencing...
)

Handle object reference. Called by AddReferencedObject.

Public function Virtual Const

bool

 

IsIgnoringArchetypeRef()

If true archetype references should not be added to this collector.

Public function Virtual Const

bool

 

IsIgnoringTransient()

If true transient objects should not be added to this collector.

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