Widget error in CesiumForUnreal 2.3.0

When trying to use CesiumForUnreal 2.3.0 in my UE5.3 project, the following error occurred

UE_5.3\Engine\Source\Runtime\UMG\Public\FieldNotification\FieldNotificationDeclaration.h(15): warning C4996: 'FieldNotificationDeclarationHeaderDeprecatedWarning': Including FieldNotification/FieldNotificationDeclaration.h is deprecated. The location of has changed. Please include FieldNotificationDeclaration.h instead and add the module FieldNotification to your .build.cs Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
UE_5.3\Engine\Source\Runtime\UMG\Public\Components\Widget.h(222): error C4042: 'unnamed-parameter': has bad storage class
UE_5.3\Engine\Source\Runtime\UMG\Public\Components\Widget.h(223): error C3646: 'UE_FIELD_NOTIFICATION_DECLARE_FIELD': unknown override specifier
UE_5.3\Engine\Source\Runtime\UMG\Public\Components\Widget.h(223): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

I did not set DefaultBuildSettings in target.cs in my project.
I was able to build without error by adding the following to CeciumRuntime.Build.cs

DefaultBuildSettings = BuildSettingsVersion.V4;.

I am not familiar with BuildSettingsVersion, but it seems to me that if this setting is included, it would be good as it would allow you to build without depending on the project settings, what do you think?

I wonder if there’s something in your project that might be causing this error?

For reference, you might try running any of our Cesium for Unreal Samples (which should build fine) and compare

Yes, the build setting of my project is probably outdated.
Cesium for Unreal Sample can also be reproduced using the following procedure.

  1. Download Cesium for Unreal Sample.
  2. Place the Cesium for Unreal plug-in in the Plugins folder.
  3. Adding C++ code in the Editor.
  4. Delete lines containing DefaultBuildSettings in the generated Target.cs file
  5. Build the sample project in visual studio => same error