FScopedClassDependencyGather

This is a helper struct that allows us to gather all previously unloaded class dependencies of a [UClass](API\Runtime\CoreUObject\UObject\UClass) The first time we create a new [UClass](API\Runtime\CoreUObject\UObject\UClass) object in FLinkerLoad::CreateExport(), we register it as a dependency master.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Blueprint/BlueprintSupport.h

Include

#include "Blueprint/BlueprintSupport.h"

Syntax

struct FScopedClassDependencyGather

Remarks

This is a helper struct that allows us to gather all previously unloaded class dependencies of a UClass The first time we create a new UClass object in FLinkerLoad::CreateExport(), we register it as a dependency master. Any subsequent UClasses that are created for the first time during the preload of that class are added to the list as potential cyclic referencers. We then step over the list at the end of the load, and recompile any classes that may depend on each other a second time to ensure that that functions and properties are properly resolved

Constructors

Name Description

Public function

FScopedClassDependencyGather

(
    UClass* ClassToGather,
    FUObjectSerializeContext* InLo...
)

Destructors

Functions

Name Description

Public function Static

TArray< UCla...

 

GetCachedDependencies()

Post load, some systems would like an easy list of dependencies.

Constants

Name

Description

BatchClassDependencies

List of dependencies (i.e. UClasses that have been newly instantiated) in the scope of this dependency gather

BatchMasterClass

The current class that is gathering potential dependencies in this scope

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