📜  平铺调色板背景颜色 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:01.228000             🧑  作者: Mango

代码示例2
EditorGUILayout.BeginHorizontal();
float leftMargin = (Screen.width / EditorGUIUtility.pixelsPerPoint - TilemapEditorTool.tilemapEditorToolsToolbarSize) * 0.5f;
GUILayout.Space(leftMargin);
EditorGUILayout.EditorToolbar(TilemapEditorTool.tilemapEditorTools);
GUILayout.Space(leftMargin);
EditorGUILayout.EndHorizontal();