1234567891011121314 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class CheckSize : MonoBehaviour
- {
- // Update is called once per frame
- void Update()
- {
- this.GetComponent<RectTransform>().sizeDelta = new Vector2(this.GetComponent<RectTransform>().sizeDelta.x,this.GetComponentInChildren<Text>().GetComponent<RectTransform>().sizeDelta.y);
- }
- }
|