Unity UI can be hard
Mon 30/09/2019
Last updated
Mon 30/09/2019
Last updated
using UnityEngine;
public class ButtonTest : MonoBehaviour {
[SerializeField] private RectTransform parentRectTransform;
void Start() {
float screenWidth = parentRectTransform.rect.width;
// int screenWidth = Screen.width;
}
}