UObjectBaseUtility::AddToRoot

Add an object to the root set.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectBaseUtility.h

Include

#include "UObject/UObjectBaseUtility.h"

Syntax

void AddToRoot()

Remarks

Add an object to the root set. This prevents the object and all its descendants from being deleted during garbage collection.