Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
1
Found in
5.3.0f4
Issue ID
755292
Regression
No
ArgumentException error with delegates using public variables in switch statement
To reproduce:
1. Open attached project
2. Open "test" scene
3. Open "testDelegate.cs" script
4. Observe that in switch statement there is delegate (anonymous method) using public variable
5. Play the scene
Expected result: message in console "IF2-2:rrr"
Actual result: error "ArgumentException: Value does not fall within the expected range."
Workaround: use if instead of switch
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
sosh
Jan 19, 2017 13:51
Hitting this issue too...