Posts Tagged

csharp

Tip of the Week #3: Decompiling Unity with dnSpy

For a side project of mine, I recently needed access to the implementations of some Unity Types like UnityEditor.MaterialEditor. Unity is not an open source platform and trying to understand its internal workings can be hard. Thankfully you can decompile Unity’s DLLs to get an insight of what is happening in the engine. My favorite…

Read More

Serialization – Saving Objects as Files

Unity’s often used built in form of serialization are the PlayerPrefs. As Lars Kokemohr, the Head of Programming at the School4Games, points out in this Facebook post: The are a lot of drawbacks to saving data using Unity’s PlayerPrefs class. Furthermore he advises that A cleaner way of doing it would be to create a…

Read More