Unity timeline + “sections” scroll sync. Starting from the scrollytelling example, I’m animating my timeline to stopping points every 600 frames. This seemed to match the template HTML content. When i went and started adding "section"s to the html, my scroll cadence is off in my Unity timeline. Do i need to re-animate everything to a shorter cadence? Or there a vale to set to sync scroll position and timeline position? Thanks in advance!
Hi, you most likely want to modify the script that sets the timeline time based on your website scroll. Which script are you currently using? (Var 1, 2 or 3). Maybe one of the other variants also works better for your usecase.
I’m currently using Var 1: Scroll Position. I guess I’m not sure on what value to tweak to sync how far the timeline plays vs where the scroll is. Is it something in here?
const progress = window.scrollY / (document.body.scrollHeight - window.innerHeight);
Yes that’s right. Progress is just set as the timeline time in this case I think