Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include | #include "UObject/UObjectGlobals.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp |
UObject * StaticLoadAsset
(
UClass * Class,
FTopLevelAssetPath InPath,
uint32 LoadFlags,
const FLinkerInstancingContext * InstancingContext
)
Remarks
Find or load an object that is one of the top level assets in a package. Returns a pointer to the found object or nullptr if none could be found
Parameters
| Name | Description |
|---|---|
| Class | The class (or a superclass) of the object to be loaded. |
| InPath | FName pair representing the outer package object and the inner top level object (asset) |
| LoadFlags | Flags controlling how to handle loading from disk, from the ELoadFlags enum |
| InstancingContext | InstancingContext used to remap imports when loading a package under a new name |