I have a script that spawns an Actor to “center of the screen - trace” but i have made an check box if it’s true that spawned Actor is automaticly attached to colliding actor if valid. But when i attach them they become childs of the parent actor (obvious job) but the thing is if i attach and actor to the child of the actor, that actor becomes parent and the new actor is child of that actor, that is already child of another actor.
So what im trying to do is whenever i spawn actor to find the “Main Parent and attach to it” I have explanation images that can clear the situation a little bit.
I have done this before but i dont like the way it was made is there a simple / cheap solution to this or i should go wild and crazy on this one.
Example how the actors are attached currently :
How i want them to attach :
Thank you in advance !