Search Issue Tracker
Fixed in 5.5.1
Votes
0
Found in
5.5.0b9
Issue ID
855492
Regression
No
[IL2CPP] Using generic struct as dictionary key does not work with IL2CPP
Steps to reproduce:
1) Open the latest attached project.
2) Build for iOS or Android with IL2CPP as the Scripting API.
3) Deploy on a device.
Look at the last 2 lines of output on the screen - dict is checked for entries with specific keys. Even though those entries exist in the dict (Mono2x finds those entries), with IL2CPP, they are not found, because generic structs do not work as dict keys with IL2CPP. It works well if value types are used as typeparams.
Reproduced on:
5.5.0f3, 5.6.0a5
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment