Language:
Discover
By Skill Level
By Category

FCustomizableTextObjectFactory

Choose your OS:

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

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

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. Will rename any existing object within InParent if it is called InName.

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
)

Parses 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

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/Factories.h