ソースコードの一部抜粋 using UnityEngine; using System. Collections; public class GM : MonoBehaviour { public static Camera mainCamera; public static float startWorldPointX; public static float endWorldPointX; public static float startWorldPointY; public static float endWorldPointY; void Start () { mainCamera = GameObject .FindGameObjectWithTag("MainCamera" ).GetComponent <Camera> (); // Viewポートの一番左のX座標 GM.s