I’ve managed to finally spawn a Datasmith Actor at runtime using modules from Engine/Source/Developer (DatasmithContent, DatasmithCore and DatasmithImporter).
However, it seems as though we are not under the licence allowed to use this content outside of editor.
My question is, if one wants to leverage the udatasmith file to spawn in assets at runtime, can we do so legally currently by any means?
For example, if I make my own XML parser to parse out the info in a udatamsith file, would that be allowed?
EDIT: To be clear, spawning in isn’t just the Datasmith Actor but all of the other StaticMesh Actors as well, basically what dragging and dropping a DS scene in editor does but at runtime.
Ideally I would like to make use of the ImportContext to aid in spawning at runtime.
Currently you are not allowed/able to do that but by 4.26 it may be possible according to a comment from the developers.
I was able to do it at runtime but using Editor Only headers that you can’t package with.
So a bit pointless to use if you can’t package it.
Yes I originally tried in 4.24 and I’m aware that in 4.25 they gave us more access but I didn’t try to see if that was sufficient. Based on my 4.24 experience I don’t think that alone is enough and last Epic developer forum post mentioned they are planning to allow this in 4.26 so I’ve sort of left it to 4.26 for the time being.