1 like 0 dislike
58 views
What is the benefit of using "unsafe" for the new Unity integration?

If it was for performance how good was it?
by joe_ml (130 points)

1 Answer

0 like 0 dislike
Hi,

Unsafe allow manipulation of pointer directly in C#. As our plugin is based extensively on C++ and we got a lot of information going through at every frame, it allow us to cast our C++ structs in C# efficiently without marshalling.

.
by vmartin (150 points)
...