brunomikoski / Animation-Sequencer

A visual tool that allows you to create animated sequences of tweens and tweak them on editor time.
MIT License
960 stars 116 forks source link

Steps foldout closes when playing animation #55

Closed timbo-tj closed 2 years ago

timbo-tj commented 2 years ago

Hey there! Firstly, a fantastic repository! Saving me a ton of time and working flawlessly.

One thing that I noticed is that when I preview the animation in the editor it collapses the Steps foldout. It's a bit tedious.

I make a small tweak to a step, I preview it, need to make another small adjustment but I have to reopen the steps foldout. It really hurts iteration speed.

I was wondering if there was a way to have the steps foldout remain open?

brunomikoski commented 2 years ago

Hey @timbo-tj , I will make that optional! The major reason for folding it out is performance, this is a "heavy inspector" and drawing all the steps inspectors 100 times per second can really impact the animations.

But I will make optional :)

timbo-tj commented 2 years ago

Ok Thanks! And that's fair enough!

I looked at the code and it seems like it's supposed to re-expand the steps panel when you press stop. So I played around with it a little bit. Here is what I discovered:

I tried it out, and it seems a little inconsistent for me. (ie if I play the animation multiple times (press Play twice)) it 'forgets' the fact that it was expanded. So when I press stop, it doesn't re-expand!. ie:

And as part of my workflow I am tweaking some prefabs in the prefab stage while the game is running. In this scenario, the Preview panel does not have a Stop button (I guess because game is running!), so there is no way to trigger the re-expand any way!

brunomikoski commented 2 years ago

Thanks for the report! I will investigate the workflow you mentioned, but for v0.5.0, you can disable it on the settings: image

https://github.com/brunomikoski/Animation-Sequencer/releases/tag/v0.5.0

timbo-tj commented 2 years ago

Oh wow nice stuff! Thanks 👍

brunomikoski commented 2 years ago

I fixed the workflow you mentioned, and should be available on the next minor.