Compiler options, unsafe

I would like to be able to use pointers in some C# code in Unity3d version 3.5.

It seems that the right way to do this is by setting compiler options, specifically “-unsafe”.

I’ve tried making smcs.rsp and gmcs.rsp files in the Assets folder with the text “-unsafe” in them (as recommended elsewhere), but that does not seem to work.

I’ve been told that there is a property list that I should edit somewhere, but I have not been able to find it.

Any help would be much appreciated.

use ‘-unsafe’

for unity windows, smcs.rsp with -unsafe text inside it ,is my only option, also remember that the C# code itself has to be provided with an unsafe keyword …

This line:

when targeting MS compiler, csc is used with csc.rsp, etc.

at

may be important to notice… I had to add that file too, so code could be exported to Visual Studio.