I’m currently writting handling code for a C library as plugin in Unity Pro
As it includes masses of strings and alike, I hoped that I could cut it a bit by using “unsafe” but found out for the DLLImport functions but that does require a specific compile flag.
Is there any way to get this working within Unity?
or is this only possible when using the build?
The error I am getting is “error CS0227: Unsafe code requires the `unsafe’ command line option to be specified”
I found this thread: http://forum.unity3d.com/viewtopic.php?t=6153&highlight=command+line+unsafe
But the question on the command line was ignored. I know how to use it for command line but that does not help me much for fast testing.
Especially without beeing able to statically define it, Unity will flood me with errors on those lines and not show a single real error as it seems