Unity 2D Camera by marcelomesmo - 1

Camera

Scale 2D Camera in Unity

Unknown VersionUnknown LicenseUpdated 1 year agoCreated on July 16th, 2018
Go to source

Unity-2D-Camera

Scale 2D Camera in Unity

Implements inner scale in Unity3D for 2D games.

Uses Unity orthographicsize to adjust camera for multiple resolutions. Useful for mobile games. Formula: orthographicSize = targetSize / (pixelsToUnits * 2). Detailed math explanation in keynote: https://www.youtube.com/watch?v=eIHqe8opFoU.

Design the game to a “larger” scale (4:3) and then adjust the screen according to the device: from the largest to the “smallest” scale (16:9).

The usable (interactable) part of your game (where the gameplay enrolls) will be designed to this smaller scale, so that the user has the same interaction regardless of screen size.

Show all projects by marcelomesmo