Answers for "tile palette background color"

0

tile palette background color

EditorGUILayout.BeginHorizontal();
float leftMargin = (Screen.width / EditorGUIUtility.pixelsPerPoint - TilemapEditorTool.tilemapEditorToolsToolbarSize) * 0.5f;
GUILayout.Space(leftMargin);
EditorGUILayout.EditorToolbar(TilemapEditorTool.tilemapEditorTools);
previewUtility.camera.backgroundColor = EditorGUILayout.ColorField(previewUtility.camera.backgroundColor);  // <--- CHANGE!
GUILayout.Space(leftMargin);
EditorGUILayout.EndHorizontal();
Posted by: Guest on May-21-2021
0

tile palette background color

EditorGUILayout.BeginHorizontal();
float leftMargin = (Screen.width / EditorGUIUtility.pixelsPerPoint - TilemapEditorTool.tilemapEditorToolsToolbarSize) * 0.5f;
GUILayout.Space(leftMargin);
EditorGUILayout.EditorToolbar(TilemapEditorTool.tilemapEditorTools);
GUILayout.Space(leftMargin);
EditorGUILayout.EndHorizontal();
Posted by: Guest on May-21-2021

Browse Popular Code Answers by Language