hi,
I want to spawn new actor and attach/parent it to another one. I have few options here, and I am very confused which one I should use and whats the difference between them.
- SpawnActor from Class and AttachActorToComponent
- SpawnActor from Class and AttachActorToActor
- AddChildActorComponent
Is there any fundamental difference between those methods ?
Once I do any of them, I try to get children and destroy them. Well, I try but no luck I call this from the same actor as I spawn them.
I tried another way of destroying them, to make a function in spawned actor that destroys self, but. I cannot cast from GetChildrenComponents to parent class of spawned actor to call this function. It only allows me to cast to components, not actors.
Basically attached actor became a component, I dont quite get this part.
Help in any way please!
thx