Super Knight : Enter the Dungeon
 
 
 
 
sked/Assets/Script/Common/UI/RectInitialized.cs

15 lines
376 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RectInitialized : MonoBehaviour
{
public RectTransform rect;
void Start()
{
//rect.offsetMin = new Vector2(left, bottom);
//rect.offsetMax = new Vector2(right, top);
rect.offsetMin = Vector2.zero;
rect.offsetMax = Vector2.zero;
}
}