mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
修改工具栏切换场景布局
This commit is contained in:
@@ -67,10 +67,8 @@ namespace TEngine
|
|||||||
EditorGUI.BeginDisabledGroup(EditorApplication.isPlayingOrWillChangePlaymode);
|
EditorGUI.BeginDisabledGroup(EditorApplication.isPlayingOrWillChangePlaymode);
|
||||||
{
|
{
|
||||||
// GUILayout.Label("资源加载模式:",ToolbarStyles.ToolBarTextStyle);
|
// GUILayout.Label("资源加载模式:",ToolbarStyles.ToolBarTextStyle);
|
||||||
|
//GUILayout.Space(10);
|
||||||
GUILayout.Space(10);
|
//GUILayout.FlexibleSpace();
|
||||||
|
|
||||||
GUILayout.FlexibleSpace();
|
|
||||||
|
|
||||||
// 资源模式
|
// 资源模式
|
||||||
int selectedIndex = EditorGUILayout.Popup("", _resourceModeIndex, _resourceModeNames, ToolbarStyles.ToolBarButtonGuiStyle);
|
int selectedIndex = EditorGUILayout.Popup("", _resourceModeIndex, _resourceModeNames, ToolbarStyles.ToolBarButtonGuiStyle);
|
||||||
@@ -81,10 +79,8 @@ namespace TEngine
|
|||||||
_resourceModeIndex = selectedIndex;
|
_resourceModeIndex = selectedIndex;
|
||||||
EditorPrefs.SetInt("EditorPlayMode", selectedIndex);
|
EditorPrefs.SetInt("EditorPlayMode", selectedIndex);
|
||||||
}
|
}
|
||||||
|
//GUILayout.FlexibleSpace();
|
||||||
GUILayout.FlexibleSpace();
|
//GUILayout.Space(400);
|
||||||
|
|
||||||
GUILayout.Space(400);
|
|
||||||
}
|
}
|
||||||
EditorGUI.EndDisabledGroup();
|
EditorGUI.EndDisabledGroup();
|
||||||
}
|
}
|
||||||
|
@@ -45,7 +45,7 @@ namespace UnityToolbarExtender.Examples
|
|||||||
var size = EditorStyles.popup.CalcSize(new GUIContent(m_SceneName[sceneSelected]));
|
var size = EditorStyles.popup.CalcSize(new GUIContent(m_SceneName[sceneSelected]));
|
||||||
// 创建水平布局
|
// 创建水平布局
|
||||||
//EditorGUILayout.BeginHorizontal();
|
//EditorGUILayout.BeginHorizontal();
|
||||||
|
GUILayout.Space(20);
|
||||||
// 将控件推到左边和右边
|
// 将控件推到左边和右边
|
||||||
//GUILayout.FlexibleSpace(); // 先占用左边的所有空间
|
//GUILayout.FlexibleSpace(); // 先占用左边的所有空间
|
||||||
EditorGUILayout.LabelField("当前场景:", GUILayout.Width(55));
|
EditorGUILayout.LabelField("当前场景:", GUILayout.Width(55));
|
||||||
|
Reference in New Issue
Block a user