as i understand actors in unreal engine just like gameObject in unity3d
so in unity i can create gameobject, add mesh renderer, mesh filter and assign mesh. there it is. all with few lines of code.
and i just can’t find closest analogue in unreal engine.
90% information in google about blueprints and how to use them.
all i found that i need to write and setup separate class for each actor i need to spawn.
question is how to create, setup and spawn actor on the fly ?
as i understand its only process of instantiation. but do i really need to write separate class for each actor ? or there is a way to do something like this
AActor* newActor = new AActor();
newActor->addMesh();
newActor->SetupParrent();
As far as I know (someone can confirm this) you have to create a subclass. Keep in mind Unreal is not in any way like Unity, it’s development paradigms are very different. Even if you could spawn an AActor it would do literally nothing, and you would have to create a subclass anyway. I’ve never once even tried to do this myself.
In Unreal Engine 4.17 one can simply add a Spawn Actor ftom Class node and a Make Transform node inside a visual script that runs when you need this to happen.