How to detect MouseDown In the ClipEditor?

Hi,

I create a customized Clip. And override the ClipEditor.DrawBackground to show keyframes on it.

Now I want to drag these keyframes on clip, how can I detect MouseDown?

I Tried to Write “Event.current.Type == EventType.MouseDown” in the Method “ClipEditor.DrawBackground”. But it doesn’t work. This method seems only support “EventType.Repaint”.

If anyone knows the answer, please share it with me.

Thanks!

I found there is no way to extend keyframe without change timeline code.
So finally I changed the timeline code, created a new layer to detect keyframe on the clip.

7919443--1010479--upload_2022-2-23_14-59-35.gif

2 Likes