📅  最后修改于: 2022-03-11 14:55:01.228000             🧑  作者: Mango
EditorGUILayout.BeginHorizontal();
float leftMargin = (Screen.width / EditorGUIUtility.pixelsPerPoint - TilemapEditorTool.tilemapEditorToolsToolbarSize) * 0.5f;
GUILayout.Space(leftMargin);
EditorGUILayout.EditorToolbar(TilemapEditorTool.tilemapEditorTools);
GUILayout.Space(leftMargin);
EditorGUILayout.EndHorizontal();