FObjectInitializer

Syntax

class FObjectInitializer

Remarks

Internal class to finalize UObject creation (initialize properties) after the real C++ constructor is called.

Constructors

Name Description

Public function

FObjectInitializer()

Default Constructor, used when you are using the C++ "new" syntax.

Public function

FObjectInitializer

(
    UObject * InObj,
    UObject * InObjectArchetype,
    bool bInCopyTransientsFromClassDefa...,
    bool bInShouldInitializeProps,
    FObjectInstancingGraph * InInst...
)

Constructor

Destructors

Name Description

Public function

~FObjectInitializer()

Destructor for internal class to finalize UObject creation (initialize properties) after the real C++ constructor is called.

Functions

Name Description

Public function Static

void

 

AssertIfInConstructor

(
    UObject * Outer,
    const TCHAR * ErrorMessage
)

Asserts with the specified message if code is executed inside UObject constructor

Public function

TReturnType ...

 

CreateAbstractDefaultSubobject

(
    UObject * Outer,
    FName SubobjectName,
    bool bTransient
)

Create optional component or subobject.

Public function

UObject *...

 

CreateDefaultSubobject

(
    UObject * Outer,
    FName SubobjectFName,
    UClass * ReturnType,
    UClass * ClassToCreateByDefault,
    bool bIsRequired,
    bool bAbstract,
    bool bIsTransient
)

Create a component or subobject

Public function

TReturnType ...

 

CreateDefaultSubobject

(
    UObject * Outer,
    FName SubobjectName,
    bool bTransient
)

Create a component or subobject

Public function

TReturnType ...

 

CreateDefaultSubobject

(
    UObject * Outer,
    FName SubobjectName,
    bool bTransient
)

Create a component or subobject

Public function

TReturnType ...

 

CreateEditorOnlyDefaultSubobject

(
    UObject * Outer,
    FName SubobjectName,
    bool bTransient
)

Create a component or subobject only to be used with the editor.

Public function

UObject *...

 

CreateEditorOnlyDefaultSubobject

(
    UObject * Outer,
    FName SubobjectName,
    UClass * ReturnType,
    bool bTransient
)

Create a component or subobject only to be used with the editor.

Public function

TReturnType ...

 

CreateOptionalDefaultSubobject

(
    UObject * Outer,
    FName SubobjectName,
    bool bTransient
)

Create optional component or subobject.

Public function

FObjectIniti ...

 

DoNotCreateDefaultSubobject

(
    FName SubobjectName
)

Indicates that a base class should not create a component

Public function

FObjectIniti ...

 

DoNotCreateDefaultSubobject

(
    TCHAR const* SubobjectName
)

Indicates that a base class should not create a component

Public function

void

 

FinalizeSubobjectClassInitialization()

Public function Static

FObjectIniti ...

 

Get()

Gets ObjectInitializer for the currently constructed object.

Public function

UObject *...

 

GetArchetype()

Return the archetype that this object will copy properties from later

Public function

UClass *

 

GetClass()

Return the class of the object that is being constructed

Public function

UObject *...

 

GetObj()

Return the object that is being constructed

Public function

bool

 

IslegalOverride

(
    FName InComponentName,
    UClass * DerivedComponentClass,
    UClass * BaseComponentClass
)

Internal use only, checks if the override is legal and if not deal with error messages

Public function

FObjectIniti ...

 

SetDefaultSubobjectClass

(
    FName SubobjectName
)

Sets the class of a subobject for a base class

Public function

FObjectIniti ...

 

SetDefaultSubobjectClass

(
    TCHAR const* SubobjectName
)

Sets the class of a subobject for a base class

References

Module

CoreUObject

Header

Runtime/CoreUObject/Public/UObject/UObjectGlobals.h