Intermediate Tips

A Story of NullReferenceException [Part 2]

This is a story of NullReferenceException part 2. If you haven’t read the part one, you can still do it here. Don’t trust GetComponent() GetComponent() is a commonly used function to access current GameObject’s component. Here’s a code snippet showing how to disable object’s renderer, so it is no longer visible in the game view.

Of course …

Continue Reading
Advanced Tips

Mobile Optimization – Garbage Collector

What is the Garbage Collector? Let’s look at a definition on MSDN: The .NET Framework’s garbage collector manages the allocation and release of memory for your application. Each time you create a new object, the common language runtime allocates memory for the object from the managed heap. As long as address space is available in …

Continue Reading