Ejemplo n.º 1
0
    private void DrawMapEditor()
    {
        GUILayout.Label(new GUIContent(" 地圖編輯", AssetDatabase.LoadAssetAtPath <Texture>("Assets/Editor/List.png")));
        if (GUILayout.Button("鎖圖層"))
        {
            EditorExpand.SetSortingLayerLocked(8, true);
        }
        GUILayout.BeginVertical("box");
        selGridInt = GUILayout.SelectionGrid(selGridInt, selStrings, 2);
        SerializedObject tagManager = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/TagManager.asset")[0]);
        var i = tagManager.targetObjects[0].name;
        SerializedProperty tagsProp = tagManager.FindProperty("tags");

        GUILayout.EndVertical();
    }
Ejemplo n.º 2
0
    private void DrawMapEditor()
    {
        GUILayout.Label(new GUIContent(" 地圖編輯", AssetDatabase.LoadAssetAtPath <Texture>("Assets/Editor/List.png")));
        if (GUILayout.Button("鎖圖層"))
        {
            EditorExpand.SetSortingLayerLocked(8, true);
        }
        GUILayout.BeginVertical("box");
        selGridInt = GUILayout.SelectionGrid(selGridInt, selStrings, 2);
        SerializedObject tagManager = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/TagManager.asset")[0]);
        var i = tagManager.targetObjects[0].name;
        SerializedProperty tagsProp = tagManager.FindProperty("tags");

        // GUILayout.BeginHorizontal("box");
        // MapMode = EditorGUILayout.BeginToggleGroup("aaa", MapMode);
        // MapMode = GUILayout.Toggle(MapMode, "Unity Font", (GUIStyle)"Radio");
        // bioMode = GUILayout.Toggle(bioMode, "Bitmap Font", (GUIStyle)"Radio");
        // EditorGUILayout.EndToggleGroup();
        // bioMode = EditorGUILayout.BeginToggleGroup("aaa", bioMode);
        // EditorGUILayout.EndToggleGroup();
        // GUILayout.EndHorizontal();
        GUILayout.EndVertical();
    }