I’ll add one
Hello @matmat here’s a simple example that adds a HTML slider.
Thank you Marcel for your patience! Last question. If I have more than one director in the scene. …(“input1”); …(“input2”); etc. How do I teach this to the Director in Unity to work with…(“input1”)?
by user 684154017479524352
The script linked above does reference a PlayableDirector component so if you want to have a slider for each timeline you can create multiple instances of the script above and assign a different director to it each time. ’
You can just need to change the code in the script a bit so that the sliders are added to a div set to e.g. a flex layout so that they align themselves properly to each other (and not overlap)
But maybe you do want to have just one slider and switch which timeline is active?
Great! Thank you Marcel!
by user 684154017479524352
So instead of this.context.domElement.appendChild(this._slider!);
and the position:absolute
style you would add it to some other HTML element that you already have in your HTML element and query it (roughly like this document.body.queryElement(".my-sliders")
)