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
- Editor crash on "PPtr<Shader>::operator Shader*() const" when checking in changes with a very long comment in Unity Version Control window
- [Ubuntu] Toolbar and menu items for Version Control lack spaces in text on Linux
- Unity Version Control window Pending Changes tab’s Item checkbox is unresponsive when clicked and the item list is empty
- Audio stuttering occurs when heavy processing is performed while OnAudioFilterRead is in use
- Inconsistent Node search results in VFX Graph
Add comment