Navigation
API > API/Editor > API/Editor/UnrealEd
This class is a simple customizable object factory driven from a text buffer. Subclasses need to implement CanCreateClass and ProcessConstructedObject.
| Name | FCustomizableTextObjectFactory |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Factories.h |
| Include Path | #include "Factories.h" |
Syntax
class FCustomizableTextObjectFactory
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCustomizableTextObjectFactory
(
FFeedbackContext* InWarningContext |
Constructor for the factory; takes a context for emitting warnings such as GWarn | Factories.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FCustomizableTextObjectFactory() |
Factories.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CanCreateObjectsFromText
(
const FString& TextBuffer |
Determine if it is possible to create objects from the specified TextBuffer | Factories.h | |
void ProcessBuffer
(
UObject* InParent, |
Parse a text buffer and factories objects from it, subject to the restrictions imposed by CanCreateClass() | Factories.h | |
void ProcessBuffer
(
UObject* InParent, |
Factories.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanCreateClass
(
UClass* ObjectClass, |
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. | Factories.h | |
| Return true if the an object of type ObjectClass is allowed to be created with a given name under the provided parent; If false is returned, the object and subobjects will be ignored. | Factories.h | ||
| Allow child class to override new object parent (only called when parent supplied to ProcessBuffer is NULL | Factories.h | ||
virtual void PostProcessConstructedObjects() |
Post handling of constructed objects by the factory | Factories.h | |
virtual void ProcessConstructedObject
(
UObject* CreatedObject |
This is called on each created object after the property text is imported | Factories.h | |
virtual void ProcessUnidentifiedLine
(
const FString& StrLine |
If we cant do anything with the line ourselves hand off to child class | Factories.h | |
| Provide the opportunity to change the name during import | Factories.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ClearObjectNameUsage
(
UObject* InParent, |
Util to ensure that InName is a valid name for a new object within InParent. | Factories.h |