Nativization fails with setter for an array of classes

Attempting to package my game today with nativization turned on, it failed on a blueprint I added recently. Looks like it fails if you have an array of classes and you try to set it with an array from an instance of a native class.

Repro steps:

  1. Create new code project (I chose the empty template).
  2. Add a new C++ class inherited from actor.
  3. In the base mode that is automatically created add a TArray> that is blueprint read only.
  4. Create a new blueprint actor, add an array of classes of the actor from step 2, in BeginPlay get the game mode, cast it to your custom game mode, try to set the BP’s array with the game mode’s array.
  5. Set nativization to “Inclusive” in the packaging settings.
  6. Package for Win32, see it fails with error C2679: binary '=': no operator found which takes a right-hand operand of type 'TArray,FDefaultAllocator>'

Here’s my repro project for this: array test

Hey kgamble,

I have reproduced your issue and entered a bug report, which you can track using the link below:

Thanks for your report.

Have a great day