Christian Henschel
Software Engineer
Category Archives: C#
VSCode as an alternative to MonoDevelop for Unity
Ever since I can remember Unity comes with a tweaked version of MonoDevelop to help you produce your code magic and it’s truely not satisfying to work with. But there is an alternative named VSCode that is working on Windows & Mac alike. And you are about to read about it right now. Update 03/26/2016:…
Pooling Part 2: How to use the pool (incl. Demo project)
In the first part of the pooling series I explained why you should use pooling and did a simple implementation of a pool class using a stack. In this post I’m going to show you an example how to use the prior work in your project. For this we create a scene with an endless amount…
Pooling Part 1: Optimize your game’s performance
Why pool? Creating and destroying GameObjects costs memory & processor power. If the GC kicks in to clear unused objects from memory your application might stutter a moment. To avoid these hiccups you can use a technique called Pooling. The idea The idea behind pooling is to create a bunch of objects (e.g. GameObjects) at application start or after a…
Render screen to texture in Unity (without Pro)
If you own a Unity Pro license you are able to draw the screen content to a texture by using a RenderTexture. An alternativ way for Unity Free users is the usage of Texture2D.ReadPixels. It can be used to capture the whole screen of the application or just a smaller part of it. In this…
Duplicate & Delete lines in MonoDevelop
While I was working with FlashDevelop I used the duplicate & delete line shortcuts a lot. Since I’ve been working with Unity3D/MonoDevelop I missed that, thought there is no way to do so. But… there is. And it’s even cooler. 🙂 If you have no text selected in MonoDevelop the copy, paste & cut shortcuts are…