Spawn Actor from Class

for me i use a blank parent actor with a structure of all the details including class and then write all the code in the main and pass it to the children class and it works perfectly if you want details let me know