Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObjectBaseUtility
Description
Add an object to the root set. This prevents the object and all its descendants from being deleted during garbage collection.
| Name | AddToRoot |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectBaseUtility.h |
| Include Path | #include "UObject/UObjectBaseUtility.h" |
void AddToRoot()