Video Texture in Timeline

Hello!
I’m trying to find out if it’s possible to insert a video texture in timeline, so that timeline controls the state of a video texture(i.e. fast forward, rewind, pause, replay, etc.).

Basically what I have is this:
Character animation is being controlled by timeline.
There is a scrub tool which user can manipulate during play mode to rewind/fast forward animation.
One of the shaders for the character is using video texture.
Everything is in sync on awake, but if a user scrubs to a different frame, the video texture doesn’t change.

Is there a way to insert a video texture in time line? Is this even possible? Any help would be greatly appreciated. Thank you!

How are you playing the video? Are you using the video playable track that’s bundled in the Default Playables package on the asset store?

ie: Default Playables | Tools | Unity Asset Store

3 Likes

Hi Mike,
At the moment I’m using video player component and plugging the video texture into the shader. I’ve followed “Playing Video in Unity” tutorial, which was super helpful. There’s a time line scrubber ui a player can manipulate during play mode. When a player moves a scrubber, animation and audio change accordingly, but not video textures. I’m guessing that’s because video texture isn’t a part of time line. Is it even possible to add a video texture into time line? Thank you for your time!

Playing Video in Unity tutorial

Check the asset store package that I linked to - there is a custom video track that you can use to drop video onto timeline.

1 Like

Thank you so much for the link! For some reason I totally missed it. I will check it out and post follow up questions if I come across more hiccups. :slight_smile:

Questions:

  1. Does the video playable track that’s bundled in the Default Playables package support preview / scrubbing in the timeline?

  2. Is the documentation missing info on the video playable?

EDIT - I see this is a separate doc in the package VideoScriptPlayable.pdf
3) Are there any examples of the video playable we can look at?

EDIT 2 - Looks like the VideoScriptPlayable.pdf is incomplete too.

Thanks!

HI Elliott,
I ended up using AVPro. Unfortunately I can’t share my project with you, but if you are looking for more robust video player tool for unity, I recommend AVPro. It’s expensive though.

2 Likes

Hi Rob,

Thanks! This is what others have told me as well. Maybe my client will pickup AVPro for me?

Hey you mean avrpro has timeline track by default?
Drag and drop video track in unity timeline i mean