Navigation
API > API/Editor > API/Editor/UnrealEd
Inheritance Hierarchy
- FCustomizableTextObjectFactory
- FBodySetupObjectTextFactory
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
| Type | Name | Description | |
|---|---|---|---|
| FObjectInstancingGraph | InstanceGraph | ||
| FFeedbackContext * | WarningContext |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCustomizableTextObjectFactory
(
FFeedbackContext* InWarningContext |
Constructor for the factory; takes a context for emitting warnings such as GWarn |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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. | |
| bool | CanCreateObject
(
UObject* InParent, |
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. | |
| bool | CanCreateObjectsFromText
(
const FString& TextBuffer |
Determine if it is possible to create objects from the specified TextBuffer | |
| void | ClearObjectNameUsage
(
UObject* InParent, |
Util to ensure that InName is a valid name for a new object within InParent. | |
| UObject * | GetParentForNewObject
(
const UClass* ObjClass |
Allow child class to override new object parent (only called when parent supplied to ProcessBuffer is NULL | |
| void | Post handling of constructed objects by the factory | ||
| void | ProcessBuffer
(
UObject* InParent, |
Parse a text buffer and factories objects from it, subject to the restrictions imposed by CanCreateClass() | |
| void | ProcessBuffer
(
UObject* InParent, |
||
| void | ProcessConstructedObject
(
UObject* CreatedObject |
This is called on each created object after the property text is imported | |
| void | ProcessUnidentifiedLine
(
const FString& StrLine |
If we cant do anything with the line ourselves hand off to child class | |
| void | UpdateObjectName
(
UClass* ObjectClass, |
Provide the opportunity to change the name during import |