16 lines
371 B
C#
16 lines
371 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class GridLayoutGroupSet : MonoBehaviour
|
|
{
|
|
[ContextMenu("Test")]
|
|
public void Test()
|
|
{
|
|
RectTransform rt = gameObject.GetComponent<RectTransform>();
|
|
Debug.Log(rt.sizeDelta);
|
|
//Debug.Log(rt.offsetMax);
|
|
//Debug.Log(rt.GetParentSize());
|
|
}
|
|
}
|