C++ Error C2679: Binary '=': no operator found which takes right-hand operand of type 'TArray'

This was the first thing i tried but it gives me the same problem in the generated header :frowning:

What i want to do is get all blueprints in subfolders of the Units folder. i have a menu ingame that has a button for each unit allowing you to call the unit onto the battlefield so i don’t need an instance of the unit just the CDO to get things like the name, the cost, etc. the reason i need the type of unit is because i’m splitting the menu into different menus for each type of unit.