Search Unity

"Allow Unsafe" checkbox always get disabled

Discussion in 'Scripting' started by ptr0x, Mar 5, 2015.

  1. ptr0x

    ptr0x

    Joined:
    Dec 9, 2013
    Posts:
    54
    Hi.

    I'm using unsafe code blocks in my c# scripts but when the scene reload in the unity editor apparently the .csproj file updates in the monodevelop/visual studio and the "Allow Unsafe" checkbox get disabled.

    Anyone have any clue to solve this? How to fix the checkbox, well, checked?

    Thanks.
     
  2. jpfranssen

    jpfranssen

    Joined:
    Apr 7, 2014
    Posts:
    12
    Any news on this? It's very inconvenient having to turn it on every time starting Monodevelop.

    @ptr0x did you manage to find a workaround for this?

    gmcs and smcs are in my assetsfolder, but still monodevelop defaults the .csproj files to a disabled "Unsafe code" option.