unity get screen width and height for placing gameobjects 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);
}
}