There is an overloaded version of NewObject<> where it asks for a UClass* together with a template object.
You have to pass to it both the CharacterSkills[Index] class and CharacterSkills[Index]->GetDefaultObject() to spawn from Blueprint.
There is an overloaded version of NewObject<> where it asks for a UClass* together with a template object.
You have to pass to it both the CharacterSkills[Index] class and CharacterSkills[Index]->GetDefaultObject() to spawn from Blueprint.