Enums are one of C#’s basic data types and represent a set of named integer constants, e.g. attack types or player states. public enum PlayerStates { None, IsDead, IsJumping, IsGood, HasCompletedTheGame, HasAllAchievments, } The unity inspector supports enums out of the box, so the previous enum would look like this. We can select exactly one…
Posts Tagged
.net
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…
Podcast Review: Coding Blocks
Coding Blocks is one of my favorite programming podcasts and part of my list of recommended podcasts for game developers. So today I want to show you why I like it so much. Overview Every episode contains software development news, present tips, and tricks and delves into a particular programming topic. The hosts Allen Underwood, Joe Zack…