少年修仙传客户端基础资源
dabaoji
2025-06-09 8ee0256378cbf5dbc9d76ed10b60b65a844ef4dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using UnityEngine;
using UnityEditor;
 
public class SafeAreaUISetting : EditorWindow
{
 
    [MenuItem("Tools/UI安全区适配")]
    private static void ShowWindow()
    {
        var window = GetWindow<SafeAreaUISetting>();
        window.titleContent = new GUIContent("SafeAreaUISetting");
        window.Show();
    }
 
    private void OnGUI()
    {
        EditorGUILayout.Space(10);
        SafeAreaUI.Sim = (SafeAreaUI.SimDevice)EditorGUILayout.EnumPopup("模拟设备", SafeAreaUI.Sim);
    }
}