1using UnityEngine; 2using UnityEngine.EventSystems; 3using UnityEngine.UI; 4 5[AddComponentMenu("Layout/Square Layout Element")] 6[RequireComponent(typeof(RectTransform))] 7[ExecuteAlways] 8public class SquareLayoutElement : UIBehaviour, ILayoutElement 9{ 10 [SerializeField] private int m_LayoutPriority = 1; 11 12 /// <inheritdoc /> 13 public void CalculateLayoutInputHorizontal() 14 { 15 var pare