Search Issue Tracker
Fixed
Votes
3
Found in
4.6.4p3
Issue ID
691309
Regression
No
IL2CPP: Using interfaced struct in generic class causes problem
IL2CPP fails to handle data in a struct when the following conditions are met:
- This struct implements an interface.
- This struct is given to a generic class as a type parameter.
- This type parameter is constrained with the interface.
See the following pseudocode. In this case, Handler<Data> causes a problem.
interface IData { .. }
struct Data : IData { .. }
class Handler<T> where T : struct, IData { .. }
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment