Description

In BlueprintCompilerCppBackendUtils.cpp:

#define MAP_BASE_STRUCTURE_ACCESS(x) \
     BaseStructureAccessorsMap.Add(x, TEXT("#x"))

Needs to be changed to:

#define MAP_BASE_STRUCTURE_ACCESS(x) \
     BaseStructureAccessorsMap.Add(x, TEXT(#x))
Steps to Reproduce
  1. Launch the editor and create a new ThirdPerson-based Blueprint-only project.
  2. Choose "Edit->Project Settings..." and change "Packaging/Blueprint Nativization Method" to "Inclusive."
  3. In the Content Browser, navigate to the "ThirdPerson_AnimBP" asset and double-click to open it for editing.
  4. In the "My Blueprint" tab, add a new variable of type 'FVector2D' (NewVar_0).
  5. In the "My Blueprint" tab, expand the "Animation Graphs/AnimGraph/Default" tree and open the "Idle/Run (state)" graph.
  6. In the graph view, right-click to add a "Get NewVar_0" node, then drag off the output pin to add a "Break Vector 2D" node.
  7. Connect the "X" output pin to the "Speed" input pin on the "ThirdPerson_IdleRun_2D" node (see attached screenshot).
  8. Compile and save the AnimBP, then close the Blueprint editor window.
  9. Choose "File->Package Project->Windows->Win64" and choose an output folder, then wait for packaging to finish.
  10. A compile error will occur similar to the following:
    UATHelper: Packaging (Windows (64-bit)):     D:/dev/local/Projects/UE_86031/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/ThirdPerson_AnimBP__pf2404374163.cpp(666): error C2014: preprocessor command must start as first nonwhite space
    UATHelper: Packaging (Windows (64-bit)):     D:/dev/local/Projects/UE_86031/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/ThirdPerson_AnimBP__pf2404374163.cpp(667): error C2143: syntax error: missing ')' before ';'
    UATHelper: Packaging (Windows (64-bit)):     D:/dev/local/Projects/UE_86031/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/ThirdPerson_AnimBP__pf2404374163.cpp(666): error C2672: 'FindFieldChecked': no matching overloaded function found
    UATHelper: Packaging (Windows (64-bit)):     D:/dev/local/Projects/UE_86031/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/ThirdPerson_AnimBP__pf2404374163.cpp(667): error C2780: 'T *FindFieldChecked(const UStruct *,FName)': expects 2 arguments - 1 provided
    
Callstack

N/A

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-86031 in the post.

1
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.23.1
Target Fix4.24.2
Fix Commit10864873
Main Commit10864878
Release Commit10864873
CreatedDec 18, 2019
ResolvedDec 20, 2019
UpdatedOct 6, 2021
View Jira Issue