Description

Nativization regression in 4.20 preview 1. Cannot nativize overridden functions.

Log Output:

UATHelper: Packaging (Windows (64-bit)): D:/Projects/Unreal/NativizeMethod/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Public/TestDerivedActor__pf1010915279.h(17) : LogCompile: Error: bpf__Print__pf: Override of UFUNCTION in parent class (TestBaseActor_C__pf1010915279) cannot have a UFUNCTION() declaration above it; it will use
the same parameters as the original declaration.
PackagingResults: Error: bpf__Print__pf: Override of UFUNCTION in parent class (TestBaseActor_C__pf1010915279) cannot have a UFUNCTION() declaration above it; it will use the same parameters as the original declaration.
UATHelper: Packaging (Windows (64-bit)): Error: UnrealHeaderTool failed for target 'NativizeMethod' (platform: Win64, module info: D:\Projects\Unreal\NativizeMethod\Intermediate\Build\Win64\NativizeMethod\Development\NativizeMethod.uhtmanifest, exit code: OtherCompilationError (5)).
Steps to Reproduce

Sample project attached

1. Create BP class based on actor (e.g. TestBase).
2. Add any new function, call it e.g. Print. Add a print text node to the Print function.
3. Create BP class based on TestBase, e.g. TestDerived.
4. Override function (e.g. Print) from TestBase in TestDerived, also add a different Print Text node.
5. Place Actors in level.
6. Package with nativization set to "inclusive".

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-60119 in the post.

4
Login to Vote

Fixed
ComponentGameplay - Blueprint
Affects Versions4.20
Target Fix4.20
Fix Commit4128365
Main Commit4133609
Release Commit4128365
CreatedJun 7, 2018
ResolvedJun 14, 2018
UpdatedJul 2, 2018