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:
- Create new code project (I chose the empty template).
- Add a new C++ class inherited from actor.
- In the base mode that is automatically created add a TArray> that is blueprint read only.
- 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.
- Set nativization to “Inclusive” in the packaging settings.
- 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