I am relatively new to the Unreal engine, and am trying to figure out how to instance an object from an automation test. From what I can tell, instancing an object requires an ObjectInitializer
object, which is usually provided by the UObject
that you are extending; however, FAutomationTestBase
does not inherit from UObject
and thus doesn’t provide one of these. Is there a globally-available ObjectInitializer
or an easy way to safely get it from an existing UObject
that’s available to automation tests?
The answer was much simpler than I thought - NewObject()
is how you normally instantiate objects.