I'm experimenting with adding animation libraries/animations/tracks/keyframes to an animation player during runtime with a script. I've tested it and everything seems to work (everything is getting added to the player), however the animation panel in the editor does not update to show this (can't see added animations/tracks/etc.).

Is there any way to get the animation player to refresh/update, like a setting, or something I can add to an editor script? I'm guessing it's not designed to update, but I'm wondering if I'm missing something simple. If not, is there a way to add a copy of the animation panel to the game itself, and then update that instead? I was thinking of just creating this myself, but if there is existing code I could work off of, that would speed this up.

Either way, I only really need this for testing, won't really need to be modifying animations too much once they are created and added. Prints/debugging have been fine for what I'm doing but it would be nice to visually see everything that is being added, and it would be great if I didn't have to create an animation viewer from scratch.

    jamei Is there any way to get the animation player to refresh/update, like a setting, or something I can add to an editor script?

    Have you tried the Tool mode?

      Tomcat I just did a quick test of this and it doesn't seem to be working. I'm thinking I'm doing something wrong on my end but in theory, should animations added to an animation player using a tool script show up in the animation panel? Thanks either way.

        jamei but in theory, should animations added to an animation player using a tool script show up in the animation panel?

        If I understand the documentation correctly, they should. But I use a translator and could be wrong. 🤔

          Tomcat Have you tried the Tool mode?

          If I recall correctly, in editor to get it to update properly it'd need probably setters and getters to be implemented and perhaps in some cases even need to be an editor plugin rather than just a tool script.

            9 days later

            Megalomaniak Tomcat

            Sorry for the late reply, it was working with the @tool script (animation panel was updating, I just didn't notice it was), but it only seemed to work in the editor, not while running the game. I might try doing an editor plugin in the future, but I realized I want a way to view animations in my application anyways, so I'm creating my own animation panel and using that to view/test the data. Thanks for the help/suggestions though, will update this if I get around to creating a plugin.

              jamei I might try doing an editor plugin in the future, but I realized I want a way to view animations in my application anyways, so I'm creating my own animation panel and using that to view/test the data.

              That would be very interesting. I suppose I could use something like that. I'll keep an eye out for developments.