void OnValueChanged(ChangeEvent <bool> evt) { var isGOToolContext = ToolManager.activeContextType == typeof(GameObjectToolContext); if (evt.newValue && isGOToolContext) { ToolManager.CycleToolContexts(); } else if (!evt.newValue && !isGOToolContext) { ToolManager.ExitToolContext(); } }