Example #1
0
        private static void DrawIconIndex(Rect controlRect, IntGridValueDefinition data)
        {
            Color color = HandleUtil.GetTextColorForIntGridValueNumber(data.UnityColor);

            GUIStyle style = new GUIStyle(GUI.skin.label)
            {
                normal = new GUIStyleState()
                {
                    textColor = color
                }
            };

            string value = $"{data.Value}";

            GUI.Label(controlRect, value, style);
        }