AI Perception fails to detect sight when using blueprint nativize conversion when building game

Hi Sean,

I also experience this issue. In my case the problem is that nativization makes new objects for Senses for AIPerception component that was made in C++. Also when nativization makes code for sense it does not set DetectionByAffiliation.

Here is STR (UE4.16.3):

  1. Make empty project
  2. add AIController parent class to C++ and add AIPerceptionComponent to it with several senses
  3. make BP AIController derived from one created in C++
  4. Build the project with nativization. When build Development you will get an exception on start.

Fatal error: [File:D:\Build++UE4+Release-4.16+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 3615]
Default subobject AISenseConfig_Sight SenseSight Config already exists for AIC_EnemyBase_C /Game/Blueprints/AIC_EnemyBase.Default__AIC_EnemyBase_C.

example project: https://drive.google.com/file/d/1UZLf37dy2EY0ehcmDcxzvKkEQQemZcpd/view?usp=sharing

Have a nice day