Demigiant / dotween

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

DOPath always closes the path #563

Open Nujee opened 2 years ago

Nujee commented 2 years ago

Hello, Demigiant!

My problem is that DOPath always closes the path. I tried chaining .SetOptions(false) to the DOPath tween, but the result is seemingly the same as .SetOptions(true).

I noticed this when infinitely looped DOPath tween, it's clearly seen due to gizmos that starting and ending points are connected with a stratight line, probably added by the DOPath itself.

Could you please help me with this, is it possible to avoid the path closing? So that my path was looped while the object being instantly translated from end to start?

Thank you in advance.

Demigiant commented 2 years ago

Ahoy!

I am sure that paths are not automatically closed. Is it possible that you have something else (like another tween, or another path) contributing to that? If after you've checked you still have problems, could you post me a code example that replicates it, so I can check it out?