Packaging Fails After Creating a C++ File Inheriting from Cesium3DTileset in Cesium for Unreal

After CesiumForUnreal plugin v2.9.0 placing it in the Plugins folder of Cesium for Unreal Samples v2.9.0, I encounter packaging failures when I create a C++ file that inherits from Cesium3DTileset within the Unreal Editor.
The following errors are occurring during the packaging. Could you please provide guidance on how to resolve this issue?
Before creating the C++ file inheriting from Cesium3DTileset, the packaging was successful.
The version of Unreal Engine I am using is 5.3.

UATHelper: Packaging (Windows): ------ Building 3 action(s) started ------
UATHelper: Packaging (Windows): [1/3] Compile [x64] MyCesium3DTileset.gen.cpp
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C4003: not enough arguments for function-like macro invocation ‘max’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(58): error C4003: not enough arguments for function-like macro invocation ‘max’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\Core\Public\Misc\AssertionMacros.h(250): note: in expansion of macro ‘checkf’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(65): error C4003: not enough arguments for function-like macro invocation ‘max’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\Core\Public\Misc\AssertionMacros.h(250): note: in expansion of macro ‘checkf’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C2589: ‘(’: illegal token on right side of ‘::’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(76): note: see reference to class template instantiation ‘TRelativePtr<T,OffsetType>’ being compiled
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C2059: syntax error: ‘(’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C2589: ‘(’: illegal token on right side of ‘::’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘(’ following ‘expression’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: error recovery skipped: ‘( (’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C2760: syntax error: ‘>’ was unexpected here; expected ‘statement’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: error recovery skipped: ‘>’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C2760: syntax error: ‘)’ was unexpected here; expected ‘expression’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C2760: syntax error: ‘)’ was unexpected here; expected ‘;’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘)’ following ‘expression_statement’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘)’ following ‘statement’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘)’ following ‘selection_statement’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘)’ following ‘statement_seq’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: missing one of: ‘}’ ?
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C2760: syntax error: ‘)’ was unexpected here; expected ‘}’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘)’ following ‘compound_statement’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: error recovery skipped: ‘) ) ?’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: error recovery skipped: ‘) :’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: error recovery skipped: ‘) ) ) . . . )’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C2062: type ‘unknown-type’ unexpected
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C2789: ‘TRelativePtr<void,uint32>::NullValue’: an object of const-qualified type must be initialized
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): note: see declaration of ‘TRelativePtr<void,uint32>::NullValue’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C2059: syntax error: ‘)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C4003: not enough arguments for function-like macro invocation ‘max’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C4003: not enough arguments for function-like macro invocation ‘max’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C2589: ‘(’: illegal token on right side of ‘::’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C3878: syntax error: unexpected token ‘(’ following ‘expression’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): note: error recovery skipped: ‘( (’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C2760: syntax error: ‘)’ was unexpected here; expected ‘;’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C3878: syntax error: unexpected token ‘)’ following ‘expression_statement’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): note: error recovery skipped: ‘) >’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C2760: syntax error: ‘)’ was unexpected here; expected ‘expression’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): note: error recovery skipped: ‘) ) ?’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): note: error recovery skipped: ‘) :’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): note: error recovery skipped: ‘) )’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C2589: ‘(’: illegal token on right side of ‘::’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C3878: syntax error: unexpected token ‘(’ following ‘expression’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): note: error recovery skipped: ‘( (’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C2760: syntax error: ‘)’ was unexpected here; expected ‘;’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C3878: syntax error: unexpected token ‘)’ following ‘expression_statement’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): note: error recovery skipped: ‘) >’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C2760: syntax error: ‘)’ was unexpected here; expected ‘expression’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): note: error recovery skipped: ‘) ) ?’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): note: error recovery skipped: ‘) :’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): note: error recovery skipped: ‘) )’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): Total time in Parallel executor: 3.04 seconds
UATHelper: Packaging (Windows): Total execution time: 4.47 seconds
UATHelper: Packaging (Windows): Took 4.54s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\sentomo\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Application+UE_5.3\UBT-CesiumForUnrealSamples-Win64-Development.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 6s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED

Hi @RxRDevelop,

Thank you for including those details with your post! I’m not quite sure what could be going wrong from the logs alone.

Could you please provide step-by-step instructions for how you built your level? Some things we’d like to know are:

  • What Cesium objects you added to your level
  • How you created the C++ class (and what its contents are)
  • How you are using that C++ class in the level
  • What system / settings you’re packaging for

Thank you in advance!

Thank you for your response.
I will outline the reproduction steps below.

Reproduction Steps:

  1. Download CesiumForUnrealSamples-v2.9.0.zip and unzip the file.
  2. Download CesiumForUnreal-53-v2.9.0.zip and unzip the file.
  3. Create a “Plugins” folder under the “CesiumForUnrealSamples-v2.9.0” directory from step 1, and place the “CesiumForUnreal” folder from step 2 inside the “Plugins” folder.
  4. Open CesiumForUnrealSamples.uproject in a text editor, modify "EngineAssociation": "5.2" to "EngineAssociation": "5.3", save the changes, and close the file.
  5. Open the CesiumForUnrealSamples.uproject.
  6. In the Unreal Editor toolbar, click “Tools > New C++ Class…”.
  7. In the “Add C++ Class” window, select “All Classes”, search for “Cesium3DTileset”, select “Cesium3DTileset”, and click “Next”. Leave the name as the default “MyCesium3DTileset” and the path as the default project folder, then click “Create Class”.
  8. Close Unreal Editor.
  9. Open “CesiumForUnrealSamples.sln” in Visual Studio 2022 and click “Build > Build CesiumForUnrealSamples” in the toolbar.
  10. Open CesiumForUnrealSamples.uproject*, and in Unreal Editor, select “Platforms > Windows > Package Project” to package the project.

You can fix this by adding the following line to your project’s .Build.cs file:

bEnableExceptions = true;

One of the third-party libraries used by Cesium for Unreal unfortunately makes the questionable choice to #include <windows.h> when exceptions are disabled. windows.h is notorious for defining a bunch of macros for common names, like min and max, and that leads to compiler errors in Unreal Engine header files. The easiest solution is to enable exceptions in your project.

1 Like

Thank you very much for your advice!

After trying various methods, I was able to successfully package the project by adding a custom plugin and inheriting the Cesium3DTileset class in it. I followed the instructions in the following link and added NOMINMAX, which successfully completed the packaging.
https://community.cesium.com/t/getting-errors-when-packaging-for-windows-with-cesium-for-unreal-5-3-0/30382/5

Additionally, I confirmed that removing NOMINMAX and adding bEnableExceptions = true; to the .Build.cs file of the custom plugin also resolved the packaging issue.

Of course, the method of adding bEnableExceptions = true; to the project’s .Build.cs file also worked for packaging as well.

I appreciate your help and the detailed explanation!