8. Pooling
• Expensive Instantiate() calls
• Use a pool for game objects that need to be
instantiated/killed frequently
• https://unity3d.com/learn/tutorials/modules/
beginner/live-training-archive/object-pooling
10. General Advice
• Code style/readability (format your code!)
• Use English for all names etc.
• Do not be afraid of refactoring/renaming
• Use a portrait resolution if your game is
portrait
• MonoBehaviour/inspector: Use private
members with [SerializeField]
• Unity Console (errors/warnings)
11. Advanced Optimization
C# Memory and performance tips for Unity:
http://www.somasim.com/blog/2015/04/csharp
-memory-and-performance-tips-for-unity/
• for-each vs. for etc.
• GC