Build fails when Scripting Backend is IL2CPP, and ThreadStatic attribute is applied to circular structs
Unity: IL2CPP
Fixed
2023.2.X
2023.1.X
2022.2.X
2021.3.X
Won't Fix
2022.1.X
2020.3.X
We do not plan on resolving this for 2020.3
Steps to reproduce:
1. Open the user’s project
2. Change the Scripting Backed to IL2CPP (File → Build Settings → Player Settings → Player)
3. Build And Run
Expected result: The project is built successfully
Actual result: The build fails