Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
Inheritance Hierarchy
- FGCObject
- TGCObjectsScopeGuard
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/GCObjectScopeGuard.h |
Include | #include "UObject/GCObjectScopeGuard.h" |
Syntax
template<typename ObjectType>
class TGCObjectsScopeGuard : public FGCObject
Remarks
Specific implementation of FGCObject that prevents an array of UObject-based pointers from being GC'd while this guard is in scope.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TGCObjectsScopeGuard
(
const TArray< ObjectType* >& InObjects |
||
![]() |
TGCObjectsScopeGuard
(
const TGCObjectsScopeGuard& |
Non-copyable |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Overridden from FGCObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddReferencedObjects
(
FReferenceCollector& Collector |
Pure virtual that must be overloaded by the inheriting class. |
![]() ![]() ![]() |
FString | Overload this method to report a name for your referencer |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
TGCObjectsScopeGuard & | operator=
(
const TGCObjectsScopeGuard& |