Choosing a camera for your project

While 2D Toolkit lets you use any Unity camera with it without restriction, it provides the tk2dCamera to make it easier to deal with 2D scenes. As of 2D Toolkit 2.1, you can configure a tk2dCamera the same way you'd configure any Unity cameras (in the Camera tab).

The tk2dCamera is now the recommended way to set up scenes, but 2D Toolkit will still work just fine with normal orthographic or perspective cameras.


The tk2dCamera encapsulates the Unity camera and adds essential metadata and helper functions to make it especially suitable for 2D scenes. The key differences between the tk2dCamera and a normal ortho camera are:

Tips and tricks.

Important note

One of the most important things to remember when working with 2D Toolkit, is that sprites are created to be displayed pixel perfect at a fixed setting. The setting is user configurable, but it means that if you import sprites with a different setting, it won't be pixel perect until you click the "1:1" button.

Coping with different resolutions.

2D Toolkit discourages scaling objects based on resolution. In almost every single case, it will be far more efficient to simply adjust your camera to compensate. The tk2dCamera resolution overrides are built specifically to address this.

Known issues.

The tk2dCamera has a known issue not displaying lit shaders correctly in Unity 4.0 & 4.1. This works fine in Unity 3.x and will be fixed in the next version of Unity.