No Such Dev
1 min readSep 22, 2020

--

That is exactly what you should NOT be doing.

The code compiles and works 99% of the time. Then one time you are going to get a runtime error because the native C object has been destroyed but the C# reference is still not set to null and is waiting for garbage collection.

--

--

No Such Dev
No Such Dev

Written by No Such Dev

Software Engineer | Indie Game Developer | Founder of No Such Studio. Follow me to learn how to make video games with Unity. http://www.nosuchstudio.com

No responses yet