UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FScopedObjectMigrationContext Struct Reference

#include <UObjectMigrationContext.h>

Public Member Functions

 FScopedObjectMigrationContext (const FUObjectMigrationContext &NewMigrationContext)
 
 ~FScopedObjectMigrationContext ()
 

Detailed Description

Helper class to be used whenever we create an FUObjectMigrationContext to ensure all calls within the scope have their FUObjectMigrationContext::GetCurrentMigrationContext set to the desired value. It will correctly pop and restore the previous value on destruction, obeying the stack of migrations (such as needing to create a new MigrationContext when we're loading from the Database).

Constructor & Destructor Documentation

◆ FScopedObjectMigrationContext()

FScopedObjectMigrationContext::FScopedObjectMigrationContext ( const FUObjectMigrationContext NewMigrationContext)
inline

◆ ~FScopedObjectMigrationContext()

FScopedObjectMigrationContext::~FScopedObjectMigrationContext ( )
inline

The documentation for this struct was generated from the following file: