Commit 4a5b6cb9 by Tim Reiter

added CameraScaler, so the camera has a fixed width on all resolutions (only height changes)

parent df071bc9
using UnityEngine;
using System.Collections;
public class CameraScaler : MonoBehaviour {
// Use this for initialization
void Start () {
Camera.main.orthographicSize = 8.5f / Screen.width * Screen.height;
}
}
fileFormatVersion: 2
guid: 471e9e3d5a6f182468b803bd80e1b1fa
timeCreated: 1433589211
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment