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" |
Syntax
class FObjectInitializer
Remarks
Internal class to finalize UObject creation (initialize properties) after the real C++ constructor is called.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default Constructor, used when you are using the C++ "new" syntax. | |||
FObjectInitializer
(
UObject* InObj, |
Special constructor for static construct object internal that passes along the params block directly | ||
FObjectInitializer
(
UObject* InObj, |
Constructor | ||
FObjectInitializer
(
UObject* InObj, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor for internal class to finalize UObject creation (initialize properties) after the real C++ constructor is called. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddPropertyPostInitCallback
(
TFunction< void()>&& Callback |
||
| void | AssertIfInConstructor
(
UObject* Outer, |
Asserts with the specified message if code is executed inside UObject constructor | |
| TReturnType * | CreateDefaultSubobject
(
UObject* Outer, |
Create a component or subobject, allows creating a child class and returning the parent class. | |
| TReturnType * | CreateDefaultSubobject
(
UObject* Outer, |
Create a component or subobject that will be instanced inside all instances of this class. | |
| UObject * | CreateDefaultSubobject
(
UObject* Outer, |
Create a component or subobject that will be instanced inside all instances of this class. | |
| TReturnType * | CreateEditorOnlyDefaultSubobject
(
UObject* Outer, |
Create a component or subobject only to be used with the editor. | |
| UObject * | CreateEditorOnlyDefaultSubobject
(
UObject* Outer, |
Create a component or subobject only to be used with the editor. | |
| TReturnType * | CreateOptionalDefaultSubobject
(
UObject* Outer, |
Create optional component or subobject. | |
| const FObjectInitializer & | DoNotCreateDefaultSubobject
(
FName SubobjectName |
Indicates that a base class should not create a component | |
| const FObjectInitializer & | DoNotCreateNestedDefaultSubobject
(
FStringView SubobjectName |
Indicates that a subobject should not create a component if created using CreateOptionalDefaultSubobject | |
| const FObjectInitializer & | DoNotCreateNestedDefaultSubobject
(
TArrayView< const FName > SubobjectNames |
Indicates that a subobject should not create a component if created using CreateOptionalDefaultSubobject | |
| void | |||
| FObjectInitializer & | Get () |
Gets ObjectInitializer for the currently constructed object. | |
| UObject * | GetArchetype () |
Return the archetype that this object will copy properties from later | |
| UClass * | GetClass () |
Return the class of the object that is being constructed | |
| FObjectInstancingGraph * | |||
| UObject * | GetObj () |
Return the object that is being constructed | |
| const FObjectInitializer & | SetDefaultSubobjectClass
(
FName SubobjectName |
Sets the class to use for a subobject defined in a base class, the class must be a subclass of the class used by the base class. | |
| const FObjectInitializer & | SetDefaultSubobjectClass
(
FName SubobjectName, |
Sets the class to use for a subobject defined in a base class, the class must be a subclass of the class used by the base class. | |
| const FObjectInitializer & | SetNestedDefaultSubobjectClass
(
FStringView SubobjectName |
Sets the class to use for a subobject defined in a nested subobject, the class must be a subclass of the class used when calling CreateDefaultSubobject. | |
| const FObjectInitializer & | SetNestedDefaultSubobjectClass
(
TArrayView< const FName > SubobjectNames |
Sets the class to use for a subobject defined in a nested subobject, the class must be a subclass of the class used when calling CreateDefaultSubobject. | |
| const FObjectInitializer & | SetNestedDefaultSubobjectClass
(
FStringView SubobjectName, |
Sets the class to use for a subobject defined in a nested subobject, the class must be a subclass of the class used when calling CreateDefaultSubobject. | |
| const FObjectInitializer & | SetNestedDefaultSubobjectClass
(
TArrayView< const FName > SubobjectNames, |
Sets the class to use for a subobject defined in a nested subobject, the class must be a subclass of the class used when calling CreateDefaultSubobject. |