It depends on what you’re trying to create, but from your description, you are looking for NewObject.
That said, I would recommend doing some reading about Unreal’s memory management and garbage collection.
It depends on what you’re trying to create, but from your description, you are looking for NewObject.
That said, I would recommend doing some reading about Unreal’s memory management and garbage collection.