// --------------------------------------------------------------------------------------------------------------------------- // Initialise editor data // --------------------------------------------------------------------------------------------------------------------------- void OnEnable() { UpdateNotifications = new UpdateNotifications(ProceduralTree.CurrentVersion, "Procedural Tree", 32907, Repaint, 0x64, true, true, false); if (iconGUIStyle == null) { iconGUIStyle = new GUIStyle() // Create a labelStyle for the notification icon { alignment = TextAnchor.MiddleCenter, fontSize = 0, fixedHeight = 16, margin = new RectOffset(3, 3, 5, 0), padding = new RectOffset(0, 1, -2, 0), fontStyle = FontStyle.Bold, }; iconGUIStyle.normal.background = IconContent("sv_icon_name6"); iconGUIStyle.normal.textColor = Color.white; } iconGUIContent = new GUIContent("\x21", "Click to read new notification!"); // GUIContent for the notification icon }
// --------------------------------------------------------------------------------------------------------------------------- // Initialise editor data // --------------------------------------------------------------------------------------------------------------------------- void OnEnable() { UpdateNotifications = new UpdateNotifications(ProceduralTree.CurrentVersion, "Procedural Tree", 32907, Repaint, 0x64, true, true, false); if (iconGUIStyle == null) { iconGUIStyle = new GUIStyle() // Create a labelStyle for the notification icon { alignment = TextAnchor.MiddleCenter, fontSize = 0, fixedHeight = 16, margin = new RectOffset(3, 3, 5, 0), padding = new RectOffset(0, 1, -2, 0), fontStyle = FontStyle.Bold, }; iconGUIStyle.normal.background = IconContent("sv_icon_name6"); iconGUIStyle.normal.textColor = Color.white; } iconGUIContent = new GUIContent("\x21", "Click to read new notification!"); // GUIContent for the notification icon }