Navigation
API > API/Editor > API/Editor/SubobjectDataInterface
References
| Module | SubobjectDataInterface |
| Header | /Engine/Source/Editor/SubobjectDataInterface/Public/SubobjectDataFactory.h |
| Include | #include "SubobjectDataFactory.h" |
Syntax
class FSubobjectFactoryManager
Remarks
The factory manager keeps a map of all registered factories that can be used to spawn Subobject Data. To add your own factory, create a subclass of ISubobjectDataFactory.
See BaseSubobjectDataFactory.h for an example.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| ISubobjectDataFactory * | FindFactoryToUse
(
const FCreateSubobjectParams& Params |
Find a factory that returns true from ShouldCreateSubobjectData based on the given parameters. | |
| bool | IsFactoryRegistered
(
FName ID |
Returns true if the given factory ID is registered | |
| bool | RegisterFactory
(
const TSharedPtr< ISubobjectDataFactory >& Factory |
||
| bool | UnregisterFactory
(
FName ID |
Remove the factory with the given ID from the registered map. |