UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ObjectRename.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "HAL/Platform.h"
7
8class UPackage;
9
10namespace UE::Object
11{
12 // Helper function to rename a package which ought to have been freed but which can't be GC'd
13 // because of outstanding references.
14 // Allows a new copy of that package to be loaded.
15 // Flushes any internal caches (e.g. async loading) that would be broken by simply renaming the object.
17}
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Package.h:216
Definition Obj.cpp:2285
void RenameLeakedPackage(UPackage *Package)
Definition ObjectRename.cpp:12