Example #1
0
        void OnFinishHandleMovement()
        {
            RebuildGizmoMesh(Vector3.one);
            RebuildGizmoMatrix();

            OnHandleFinish?.Invoke();

            StartCoroutine(SetDraggingFalse());
        }
Example #2
0
        private IEnumerator InvokeFinishHandleEvent()
        {
            //Wait until the end of the frame so that the OnHandleFinish event doesn't overlap with the OnMouseUp event
            yield return(new WaitForEndOfFrame());

            //After dragging the handle, release the cursor
            EditorManager.Instance.ReleaseCursor();
            //Notify all listeners that the handle is no longer being interacted with
            OnHandleFinish?.Invoke();
        }