Description

When a BlueprintCallable function returns an array of classes, packaging will fail if Nativization Method is set to Inclusive.

Steps to Reproduce
  1. Open UE4 Editor (any project)
  2. Add code to project based on Actor (MyActor)
  3. Add the following to MyActor.h
    UFUNCTION(BlueprintCallable, Category = "Test")
    		TArray<TSubclassOf<AMyActor>> Test();
    
  4. Add the following to MyActor.cpp
     
    TArray<TSubclassOf<AMyActor>> AMyActor::Test()
    {
    	return TArray<TSubclassOf<AMyActor>>();
    }
    
  5. Compile
  6. Create blueprint based on MyActor
  7. Add call to Test and wire to BeginPlay node
  8. In Project Settings, set Project->Packaging->Blueprints->Blueprint Nativization Method to Inclusive
  9. Package project for Win64

Result:
Package process fails

Expected:
Package completes with blueprint nativization

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

4
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.15.1
Target Fix4.17
Fix Commit3460004
Main Commit3510073
CreatedApr 28, 2017
ResolvedJun 21, 2017
UpdatedJun 27, 2017