mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
[+] Update LoadData
[+] Update LoadData
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
using UnityEngine;
|
||||
using TEngine;
|
||||
|
||||
namespace GameLogic
|
||||
{
|
||||
public class SafeTop : MonoBehaviour
|
||||
{
|
||||
void Start()
|
||||
{
|
||||
var topRect = (gameObject.transform as RectTransform);
|
||||
var safeArea = UnityEngine.Screen.safeArea;
|
||||
if (topRect != null)
|
||||
{
|
||||
var anchoredPosition = topRect.anchoredPosition;
|
||||
anchoredPosition = new Vector2(anchoredPosition.x,anchoredPosition.y - safeArea.y);
|
||||
topRect.anchoredPosition = anchoredPosition;
|
||||
}
|
||||
Log.Debug(safeArea);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user