How could I access the TimelineClip’s easeIn or easeOut durations in PlayableBehaviour.ProcessFrame (either in a track mixer or in the behaviour representing the clip)? I can get the current input weight from Playable.GetInputWeight but I’d like to find out whether the easing of the input playable is currently in the rising or falling phase.
I haven’t found a good way to get access clip info directly from PlayableBehaviour, but you can pass a clip reference (or valid data) down from a custom Track, into your custom PlayableAsset, and from there into your PlayableBehaviour.
You can drop something like the following into your TrackAsset.CreateTrackMixer()
override:
var clips = GetClips();
foreach ( var clip in clips )
{
if ( clip.asset is MyAssetType myAsset)
{
myAsset.Clip= clip;
}
}
You can then pass the clip reference to your PlayableBehaviour in your PlayableAsset.CreatePlayable()
override.