Posts

Showing posts from June, 2011

How to get call stack in C# code

http://www.csharp-examples.net/reflection-callstack/ http://www.csharp-examples.net/reflection-calling-method-name/ This works pretty well.

Dealing with Unity Block in code

It can be a nightmare when every line of code uses unity block and hides the path of code execution unnecessarily. A developer can become quickly overwhelmed trying to figure out how to find out the "real" class whose object is being used. The simplest way is to go to the interface and find references, which will show you all classes which implement the interface. In a bad design, there will always be just one class which implements this interface and which is unnecessarily called via unity. Unity is gr8 - but please use it when plugin is really required.