void Update() { if (alwaysTitle.Length > 0) { if (manager == null) { manager = gameObject.AddComponent <GameInspectorManager>(); } manager.windowTitle = alwaysTitle; manager.followMouse = false; manager.bound = bound; manager.Show(this); } else { if (manager != null) { manager.Hide(this); } } }
void OnMouseEnter() { sharedManager.Show(this); }
//These two functions make the inspector display when the mouse is //over the game object. void OnMouseEnter() { manager.Show(this); }