How to access "Timeline" package through code now?

Hey guys,

I updated a project that was pre-Unity 2019 that has scripts that have “using UnityEngine.Timeline” using directive at the top of the script.

Now that I’ve upgraded to Unity 2019.2.6f1, the “Timeline” is now a separate package instead of built-in that you have to install via the Package Manager, so it doesn’t work. The using directive no longer works. So how can I tell my scripts to use the “Timeline” namespace again from the package manager in my code and get them to recognize “Timeline” variables and functions?

Thanks for any help.

Instead of “using UnityEngine.Timeline”, you probably just need to import the new location for where this package now is located. If you dont know that, then visual studio may suggest you the right import when you click on the red squiggly line.

However, when looking for Unity Timeline, i am not able to find any API at all. All i find is the timeline editor tool. Are you sure it has not been renamed or something? I personally did not use it so far.

Hope this helps.