How do I add a custom asset importer?

Ok so to answer my own question, from looking at the Paper2D source:

In the UFactory constructor, set bEditorImport and bText to true, and add formats in this way (for instance)

Formats.Add(TEXT("json;GTS JSON file"));

Then override FactoryCreateText and handle your parsing and object creation there. Pretty straightforward.

1 Like