Since you’ve connected the Class pin on the spawn node, it can only return parent class now. Make Unit Actor type - so it can accept any actor. Or make Unit the base class of the mechs - so it can accept any mech.
You have deleted your previous message, but it actually helped me. I moved this function into a parent object and now I am simply calling it after I spawn each actor from the actor itself.