Hi,
Is there a way to get the timeline’s current activation/animation track while it is playing?
I would like to get the clip.start and clip.end info on the timeline’s clip.
How do I do this?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Timeline;
public class TimelineController : MonoBehaviour {
public PlayableDirector timeline;
public void Update () {
var asset = timeline.playableAsset as TimelineAsset;
foreach (var track in asset.GetOutputTracks ()) {
}
}
}