Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.34k stars 351 forks source link

Copying and pasting DoTween component in inspector breaks tweens randomly #277

Open ahmetyazir22 opened 5 years ago

ahmetyazir22 commented 5 years ago

How to create the bug: Create a gameobject with DoTween component attached, set some settings in the inspector, copy component, paste component values on another gameobject.

Expected behaviour: All gameobjects should play the tween accordingly.

What happens: The original gameobject from which the component was copied plays the tween nicely. Other gameobjects do not play at all or only some of them play.

What I have tried so far & temporary solution: Changing a setting on the component solves the issue. It must be refreshing or triggering something in the background after copy/paste procedure.

Drawback to the solution: Since multi-object editing not supported, it is very time consuming tho change a setting and reverting back on tens of objects. Still, this should give you the right direction to solve the problem.

Unity 2018.3.0f2 & DoTween v1.0.075

Thanks for creating such a great asset.

Demigiant commented 5 years ago

Hi,

Thanks for the detailed report. I have to admit I never tried to copy/paste a DOTweenComponent (which Is should've, so shame on me), but I think I know the problem. Will look into it asap.

Cheers, Daniele

ahmetyazir22 commented 5 years ago

Just found the problem in inspector debug mode. It seems that "Target" is set to "None" after pasting values.

image

I run an editor script as a temporary solution, assign RigidBody2D as target and this fixes the problem for me now.

image