- Home /
Is it possible to switch character animations entirely through script?
I would like to have a character iterate through a list of animations. I know that's possible using the Timeline, but I'm wondering if there is a way to simply provide a list of animations to a character (at run time), and the animations would start playing one by one until the end of the list. Is it possible to setup animations for a character without an animator controller or Timeline?
Answer by xibanya · Dec 24, 2019 at 03:27 AM
This can be done using the Playables API https://docs.unity3d.com/Manual/Playables-Examples.html , the example given at the bottom of the page under the header Creating PlayableBehavior is pretty close to the scenario you describe.
Thanks for the reply. I'm not familiar with the PlayableGraph, it seems interesting. There isn't a lot of tutorials out there on the subject. I found this one (https://blogs.unity3d.com/2018/09/05/extending-timeline-a-practical-guide/), I hope that it helps someone else looking for more information on the subject. Just one quick note, there is an extra query parameter on your link, that is linking to a 404 page. If you know any tutorials on this, please let me know.
looks like unity answers auto-formatted the comma to be a part of the link. click it again, without the comma at the end it works fine