public void StartNewDrag() { Activate(); selectedNote = NoteRayUtil.NoteUnderMouse(activatedCamera, notesLayer); originNote = new EditorNote(); originNote.note = new Note(new Vector3(0, 0, 0)); originNote.note.Type = selectedNote.note.Type; if (selectedNote.type == EditorNoteType.RailNode && selectedNote.noteGO != null) { originNote.note.Position = new float[] { selectedNote.noteGO.transform.position.x, selectedNote.noteGO.transform.position.y, selectedNote.noteGO.transform.position.z } } ; else { originNote.note.Position = selectedNote.note.Position; } originNote.note.Segments = selectedNote.note.Segments; isDragging = true; }
public void RemoveNodeFromActiveRail() { EditorNote note = NoteRayUtil.NoteUnderMouse(activatedCamera, notesLayer); RemoveNodeFromActiveRail(note); }