FCustomizableTextObjectFactory

This class is a simple customizable object factory driven from a text buffer.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Factories.h

Include

#include "Factories.h"

Syntax

class FCustomizableTextObjectFactory

Remarks

This class is a simple customizable object factory driven from a text buffer. Subclasses need to implement CanCreateClass and ProcessConstructedObject.

Variables

Constructors

Name Description

Public function

FCustomizableTextObjectFactory

(
    FFeedbackContext* InWarningCon...
)

Constructor for the factory; takes a context for emitting warnings such as GWarn

Destructors

Functions

Name Description

Protected function Virtual Const

bool

 

CanCreateClass

(
    UClass* ObjectClass,
    bool& bOmitSubObjs
)

Return true if the an object of type ObjectClass is allowed to be created; If false is returned, the object and subobjects will be ignored.

Public function Const

bool

 

CanCreateObjectsFromText

(
    const FString& TextBuffer
)

Determine if it is possible to create objects from the specified TextBuffer

Protected function Static

void

 

ClearObjectNameUsage

(
    UObject* InParent,
    FName InName
)

Util to ensure that InName is a valid name for a new object within InParent.

Protected function Virtual

UObject *...

 

GetParentForNewObject

(
    const UClass* ObjClass
)

Allow child class to override new object parent (only called when parent supplied to ProcessBuffer is NULL

Protected function Virtual

void

 

PostProcessConstructedObjects()

Post handling of constructed objects by the factory

Public function

void

 

ProcessBuffer

(
    UObject* InParent,
    EObjectFlags Flags,
    const FString& TextBuffer
)

Parse a text buffer and factories objects from it, subject to the restrictions imposed by CanCreateClass()

Public function

void

 

ProcessBuffer

(
    UObject* InParent,
    EObjectFlags Flags,
    const TCHAR* TextBuffer
)

Protected function Virtual

void

 

ProcessConstructedObject

(
    UObject* CreatedObject
)

This is called on each created object after the property text is imported

Protected function Virtual

void

 

ProcessUnidentifiedLine

(
    const FString& StrLine
)

If we cant do anything with the line ourselves hand off to child class

Protected function Virtual

void

 

UpdateObjectName

(
    UClass* ObjectClass,
    FName& InOutObjName
)

Provide the opportunity to change the name during import

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss