Navigation
API > API/Runtime > API/Runtime/CoreUObject
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| UObject/UObjectGlobals.h | |||
T * NewObject
(
UObject* Outer, |
UObject/UObjectGlobals.h | ||
T * NewObject
(
UObject* Outer, |
Convenience template for constructing a gameplay object | UObject/UObjectGlobals.h |
NewObject(UObject *)
| Name | NewObject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
template<class T>
T * NewObject
(
UObject * Outer
)
NewObject(UObject , FName, EObjectFlags, UObject , bool, FObjectInstancingGraph , UPackage )
| Name | NewObject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
template<class T>
T * NewObject
(
UObject * Outer,
FName Name,
EObjectFlags Flags,
UObject * Template,
bool bCopyTransientsFromClassDefaults,
FObjectInstancingGraph * InInstanceGraph,
UPackage * InExternalPackage
)
NewObject(UObject , const UClass , FName, EObjectFlags, UObject , bool, FObjectInstancingGraph , UPackage *)
Description
Convenience template for constructing a gameplay object
| Name | NewObject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include Path | #include "UObject/UObjectGlobals.h" |
template<class T>
T * NewObject
(
UObject * Outer,
const UClass * Class,
FName Name,
EObjectFlags Flags,
UObject * Template,
bool bCopyTransientsFromClassDefaults,
FObjectInstancingGraph * InInstanceGraph,
UPackage * InExternalPackage
)
a pointer of type T to a new object of the specified class
Parameters
| Name | Remarks |
|---|---|
| Outer | the outer for the new object. If not specified, object will be created in the transient package. |
| Class | the class of object to construct |
| Name | the name for the new object. If not specified, the object will be given a transient name via MakeUniqueObjectName |
| Flags | the object flags to apply to the new object |
| Template | the object to use for initializing the new object. If not specified, the class's default object will be used |
| bCopyTransientsFromClassDefaults | if true, copy transient from the class defaults instead of the pass in archetype ptr (often these are the same) |
| InInstanceGraph | contains the mappings of instanced objects and components to their templates |
| InExternalPackage | Assign an external Package to the created object if non-null |
| RemoteId | Globally unique id for this object |