Archive 17/01/2023.

[Solved] when to use RegisterFactory

scorvi

hey,

when do i use context->RegisterFactory() to register my new class ?
And when do i specify a category ?

cadaver

If your class is a Component, Resource or UIElement subclass. Also, if you for some other reason want to instantiate your object by type with the CreateObject function.

Categories are for showing the component in the correct submenu in the editor.

scorvi

ok thx