FSubobjectFactoryManager

The factory manager keeps a map of all registered factories that can be used to spawn Subobject Data.

Choose your operating system:

Windows

macOS

Linux

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

Name Description

Public function

FSubobjectFactoryManager()

Destructors

Name Description

Public function

~FSubobjectFactoryManager()

Functions

Name Description

Public function

ISubobjectDa...

 

FindFactoryToUse

(
    const FCreateSubobjectParams& Para...
)

Find a factory that returns true from ShouldCreateSubobjectData based on the given parameters.

Public function Const

bool

 

IsFactoryRegistered

(
    FName ID
)

Returns true if the given factory ID is registered

Public function

bool

 

RegisterFactory

(
    const TSharedPtr< ISubobjectDataFac...
)

Public function

bool

 

UnregisterFactory

(
    FName ID
)

Remove the factory with the given ID from the registered map.