Search Issue Tracker
Fixed
Fixed in 2021.3.33f1, 2022.3.15f1, 2023.2.1f1, 2023.3.0a16, 7000.0.0a1
Votes
0
Found in
2021.3.31f1
2022.3.10f1
2023.1.16f1
2023.2.0b12
2023.3.0a8
Issue ID
UUM-52898
Regression
No
Structure with CharSet.Auto prevents project build when IL2CPP is selected
How to reproduce:
1. Open the attached project “StructBug”
2. Build And Run the project
Expected result: The build is successful
Actual result: The build fails with “Building Library\Bee\artifacts\WinPlayerBuildProgram\u1oik\94fkllbqrvfh.obj failed with output: Il2CppCCalculateTypeValues.cpp” error
Reproducible with: 2021.3.31f1, 2022.3.10f1, 2023.1.16f1, 2023.2.0b12, 2023.3.0a8
Reproducible on: Windows 11 Pro
Not reproducible with: No other environment tested
Full error:
Building Library\Bee\artifacts\WinPlayerBuildProgram\u1oik\94fkllbqrvfh.obj failed with output:
Il2CppCCalculateTypeValues.cpp
C:\Users\Desktop\Cases\IN-55352_Il2CppTest\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\Il2CppCCalculateTypeValues.cpp(37855): error C2065: 'SomeStruct_t7B03F5B1FA7563B4C6F0EB378AA62A87BEF2C37D_marshaled_pinvoke': undeclared identifier
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- WebGL Player with WebGPU Graphics API fails to render Scene when custom Render Feature is used
- “EndLayoutGroup” error thrown when changing Shader Precision Model settings in Build Profiles window > Player Settings Overrides
- Button hover state uses default theme color when a custom .uss is applied
- Samples Showcase script warning does not clear after enabling required settings until GameObject is reselected
- VFX Particles receive shadow artifacts when using ShaderGraph with enabled shadows and Face Camera Plane Orient mode
Add comment