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

Possible to Break Original layout #15

Closed nindim closed 3 years ago

nindim commented 3 years ago

Hi,

I have noticed that if I configure the AnimationSequencer in certain ways I can break the original Editor UI layout.

For the record, I don't expect the setups below to yield correct animation results during Preview/Runtime, they are definitely misconfigured. I just don't expect my original layout to be broken post-preview as a result of my mistake.

Example 1 - "Move to Anchored Position" in From Direction and a "Shake Position". image image

Result: With this particular combination the position of the Tween Target is left at the start of the "Move to Anchored Position". image

Example 2 - "Rotate to Euler Angles" and "Shake Rotation" image image

Result: A seemingly random rotation is left on the RectTransform. image

Both issues occur when they are combined as Actions within a single step or as separate Actions that are Joined.

I doubt this is limited to just the actions I have listed above, I expect driving any variable with more than s single step/action at once will cause issues.

Thanks a lot,

Niall

brunomikoski commented 3 years ago

I will investigate it properly, can you confirm what version of the DOTween you are using it?

There was a version some time ago that caused similar issues to the ones you mentioned.

brunomikoski commented 3 years ago

I believe most of the issues that could cause this has been fixed on v0.2.0!

nindim commented 3 years ago

Hey @brunomikoski!

I am using DOTween 1.2.420: image

I will try version 0.2.0 and report back :)

nindim commented 3 years ago

Hey @brunomikoski,

I am still seeing these issues in the latest version of Animation-Sequencer 0.2.4 and DOTween 1.2.632.

I have attached a reproduction project showing the first use case in the original bug report.

Repro Steps:

  1. Open SampleScene
  2. Note the location of the white square
  3. Select Image
  4. Notice "Image" position is (128, 0, 0)
  5. Select Canvas
  6. Press Play
  7. Wait for the preview to end
  8. Press Stop
  9. Notice the white square is not where it started.
  10. Select Image
  11. Notice "Image" position is (-510, 0 0) rather than (128, 0, 0)

AnimationSequencerTest_0.2.4.zip

Thanks a lot,

Niall