Pixel To World Unit Conversion
using UnityEngine ; using System.Collections ; public class ResolutionCompensation : MonoBehavior { public Vector2 WorldUnitsInCamera ; public Vector2 WorldToPixelAmount ; public GameObject Camera ; void Awake ( ) { //Finding Pixel To World Unit Conversion Based On Orthographic Size Of Camera WorldUnitsInCamera . y = Camera . GetComponent < Camera > ( ) . orthographicSize * 2 ; WorldUnitsInCamera . x = WorldUnitsInCamera . y * Screen . width / Screen . height ; WorldToPixelAmount . x = Screen . width / WorldUnitsInCamera . x ; WorldToPixelAmount . y = Screen . height / WorldUnitsInCamera . y ; } //Taking Y...