screen width unity code example
Example: unity get screen width
using System.Collections;
using System.Collections.Generic;
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//Output the current screen window width in the console
Debug.Log("Screen Width : " + Screen.width);
}
}