public void SelectActor(System.Action <VoosActor> callback) { if (objectSelectorTool != null) { editMain.RemoveToolFromList(objectSelectorTool); } objectSelectorTool = editMain.AppendTool <ObjectSelectorTool>(selectorToolFab); // Hack because CanvasRender can't be disabled ... maybe we can add an animation here? assetUI.pickerOverlay.SetActive(true); MoveToolSettings settings = this; System.Action <VoosActor> moveToolCallback = (actor) => { hierarchyPanelController.SetSelectCallback(null); editMain.RemoveToolFromList(settings.objectSelectorTool); assetUI.pickerOverlay.SetActive(false); Debug.Log((actor != null ? actor.GetDisplayName() : "nothing") + " " + "selected"); callback(actor); }; hierarchyPanelController.SetSelectCallback(moveToolCallback); objectSelectorTool.OnActorSelect = moveToolCallback; }