NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/GameWrapper/DebugScreenMono.cs

19 lines
340 B
C#
Raw Normal View History

using System;
using UnityEngine;
public class DebugScreenMono: MonoBehaviour
{
private void OnGUI()
{
DrawSafeAreaRect();
}
private void DrawSafeAreaRect()
{
var rect = Screen.safeArea;
rect.height = -rect.height;
rect.y = Screen.height - rect.y;
GUI.Box(rect, "");
}
}