We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b798f8d commit 444af16Copy full SHA for 444af16
Demo/API_V2/Assets/API/Touch/Touch.cs
@@ -14,8 +14,14 @@ public class TouchTest : MonoBehaviour,
14
private Dictionary<int, List<GameObject>> touchCircles = new Dictionary<int, List<GameObject>>();
15
// 移除currentPointerId字段,改为完全依赖touchCircles字典管理所有触点
16
17
+ private RectTransform title;
18
void Start()
19
{
20
+ // 根据系统安全区域调整标题的位置
21
+ title.anchoredPosition = new Vector2(
22
+ title.anchoredPosition.x,
23
+ -125f - (float)GameManager.Instance.WindowInfo.safeArea.top
24
+ );
25
Debug.Log("TouchTest脚本初始化开始");
26
27
// 确保Canvas设置正确
0 commit comments