Hi there, is it possible to create permanent transitions between anim states from script (ie. not using the state graph editor)? I can trigger a transition by calling transition on the layer, but I can find no way of setting up transitions for instance to always return from a given anim state.
I don’t believe so. AFAIK, the graph is a ‘static’ asset and is not meant to change at runtime. While you can load a whole new graph, there isn’t a public API to add one to an existing graph.
A possible workaround for this is to use Animation events so you know when an animation has finished playing. Anim Events | Learn PlayCanvas
2 Likes
Thanks, will use events