Getting critically necessary information in OnBehaviourPause

I’m pretty irritated with timeline right now. But if someone can answer this question it will help.

As far as I can tell you can’t get the track binding or the resolver in OnBehaviourPause.

This is possible in OnBehaviourPlay():
var pd = playable.GetGraph().GetResolver() as PlayableDirector;

However! Inside OnBehaviourPlay, GetResolver() used like this returns null as far as I can tell. Also since neither OnBehaviourPlay or OnBehaviourPause have the userdata passed into them, you’re stuck with no useful references at all.

I’m disappointed with so many aspects of this workflow in how horribly frustrated it makes me every time I dive into it.

The frameInfo that is passed to the OnBehaviourMethods should contain the PlayableOutput. Cast that to a ScriptPlayableOutput and call GetUserData() to get the binding.

I appreciate that, thank you.