Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
This interface exposes garbage collection reference tracking.
| Name | IGarbageCollection |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/TraitInterfaces/IGarbageCollection.h |
| Include Path | #include "TraitInterfaces/IGarbageCollection.h" |
Syntax
struct IGarbageCollection : public UE::UAF::ITraitInterface
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InterfaceUID | UE::UAF::FTraitInterfaceUID | Globally unique UID for this interface | TraitInterfaces/IGarbageCollection.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddReferencedObjects
(
const FExecutionContext& Context, |
Called when garbage collection requests hard/strong object references | TraitInterfaces/IGarbageCollection.h |
Overridden from ITraitInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText & GetDisplayName() |
Human readable interface names, in long and short format. | TraitInterfaces/IGarbageCollection.h | |
virtual const FText & GetDisplayShortName() |
Human readable interface names, in short format (ideally 3 or 4 letters, due to space restrictions in the editor) | TraitInterfaces/IGarbageCollection.h | |
virtual UE::UAF::FTraitInterfaceUID GetInterfaceUID() |
TraitInterfaces/IGarbageCollection.h | ||
virtual bool IsInternal() |
Internal interfaces are only displayed in the Traits Editor in the Advanced View. | TraitInterfaces/IGarbageCollection.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void RegisterWithGC
(
const FExecutionContext& Context, |
Registers the provided binding for GC callback Once registered, AddReferencedObjects is called during GC to collect references | TraitInterfaces/IGarbageCollection.h | |
static void UnregisterWithGC
(
const FExecutionContext& Context, |
Unregisters the provided binding from GC callback. | TraitInterfaces/IGarbageCollection.h |