public override void DrawTimelineGui(Rect rect) { #if UNITY_EDITOR if (EventName != null && name != EventName) { name = EventName; UnityEditor.EditorUtility.SetDirty(this); } #endif var guiStyle = new GUIStyle(GUI.skin.box); guiStyle.normal.background = TextureUtilities.MakeTexture((int)rect.width, (int)rect.height, new Color(0.54f, 1f, 0.58f), new RectOffset(5, 5, 5, 5), new Color(0f, 0.35f, 0.1f)); GUI.Box(rect, string.Format("{0:F3}:{1}", StartTime, EventName), guiStyle); }