Search Issue Tracker
By Design
Votes
0
Found in
2018.1.0b8
2018.2.0a1
Issue ID
1005138
Regression
Yes
[Regression] "Unsafe code requires the `unsafe' command line option to be specified" appears in console
How to reproduce:
1. Download and open attached project file
2. Notice the errors in the Console Window
Actual result: In 2018.1.0b7 script works fine, from 2018.1.0b8 error "Assets/LeapMotion/Core/Scripts/Utils/BitConverterNonAlloc.cs(17,7): error CS0227: Unsafe code requires the `unsafe' command line option to be specified" Appears
Reproduced with: 2018.1.0b8, 2018.1.0b9, 2018.2.0a1
Not reproduced with: 2017.3.1p2, 2018.1.0b7
Regression since: 2018.1.0b8, 2018.2.0a1
--------------------------------------------
Solution: This is a change in behaviour. Allow unsafe code option now has to be enabled in player settings for Assembly-CSharp.dll and in the .asmdef inspector for .asmdef assemblies.
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