Is there a way to create clips with default easing settings?

Hi, I made a custom clip for my subtitles, and I’d like all my subtitles to have 0.2 ease in and ease out time.
Right now I have to set this by hand every time I create a new clip, is there a way to access and set that property by default when I create the clip?

There is. One way to use a clip editor, which will get called when a clip is created in the timeline editor. Here’s an example:

[UnityEditor.Timeline.CustomTimelineEditor(typeof(MyPlayableAsset))]
public class MyPlayableAssetClipEditor : UnityEditor.Timeline.ClipEditor
{
    public override void OnCreate(TimelineClip clip, TrackAsset track, TimelineClip clonedFrom)
    {
        if (clonedFrom == null)
        {
            clip.easeInDuration = 0.2;
            clip.easeOutDuration = 0.2;
        }
    }
2 Likes