UIForceFullArea.cs 360 B

123456789101112
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class UIForceFullArea : UIControlArea
  5. {
  6. protected override void CalcRect(Rect safeArea, ScreenOrientation orientation, int width, int height, out Vector2 min, out Vector2 max)
  7. {
  8. min = new Vector2(0, 0);
  9. max = new Vector2(width, height);
  10. }
  11. }