Navigation
API > API/Runtime > API/Runtime/CoreUObject
Description
Create a new instance of an object. The returned object will be fully initialized. If InFlags contains RF_NeedsLoad (indicating that the object still needs to load its object data from disk), components are not instanced (this will instead occur in PostLoad()). The different between StaticConstructObject and StaticAllocateObject is that StaticConstructObject will also call the class constructor on the object and instance any components.
| Name | StaticConstructObject_Internal |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp |
UObject * StaticConstructObject_Internal
(
const FStaticConstructObjectParameters & Params
)
A pointer to a fully initialized object of the specified class.
Parameters
| Name | Remarks |
|---|---|
| Params | The parameters to use when construction the object. |