I’m draw empty texture with GUI.DrawTexture(rect, EditorGUIUtility.whiteTexture)
and change it’s colour with GUI.color. This rectangle colour is not affected by Olaymode Color Tint:
var defColor = GUI.color;
GUI.color = EditorGUIUtility.isProSkin
? (Color)new Color32(56, 56, 56, 255)
: (Color)new Color32(194, 194, 194, 255);
GUI.DrawTexture(selectionRect, EditorGUIUtility.whiteTexture);
GUI.color = defColor;
How to draw texture to make it tinted in playmode?