Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrub timeline #7

Open
BitBarrel opened this issue Dec 2, 2023 · 3 comments
Open

Scrub timeline #7

BitBarrel opened this issue Dec 2, 2023 · 3 comments

Comments

@BitBarrel
Copy link

How do I scrub through a timeline in Unity?

@luigi-rosso
Copy link
Contributor

We don't expose this directly Unity. We currently only expose state machines which control animations (timelines). You could create a state machine that scrubs to certain times and control inputs to drive from Unity.

We can also expose the ability to drive animations manually from Unity which would let you manually scrub timelines.

Can you share more details about what you're trying to do?

@BitBarrel
Copy link
Author

Can you share more details about what you're trying to do?

I am making a technical training app (featuring an aircraft display). It is essential that I can set an animation timeline location directly without using a state machine to set the exact location of a complex animation. Although it is possible to use a blend state machine to set the exact location of an animation, this only works well with simple timelines and is cumbersome and not intuitive to set up. It would be much easier and less restrictive if a timeline location could be set directly using a scrub feature in code.

For example, instead of setting the speed, try setting the altitude of this aircraft display to the exact altitude of 7865.3 ft, or any other precise number.

https://rive.app/community/6819-13114-altitude-rolling-numbers/

That is currently not possible either with a state machine nor in code in Unity.

@chris-crucible
Copy link

We have a similar use case which requires the use of Unity Timeline to allow the user to scrub through short cutscenes created within our app. We'd like to try using Rive to handle character animations, but would need this frame-level control. Is this on your roadmap?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants