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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback