NagaChiang / entity-tween

Entity compatible tween library for Unity ECS/DOTS and Project Tiny (DOTS Runtime).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coming back zero point after finish

xOrfe opened this issue · comments

Thank you sooo much for this beatiful repo :p , entity coming back start point(immediately) after reach end point. I cant figure out why.

        Entities.
            WithAll<Block>().
            ForEach((Entity entity,in Translation translation) => {
                float3 start = translation.Value;
                float3 end = new float3(20.0f, 20.0f, 0);
                float duration = 1.0f;
                bool isPingPong = false;
                int loopCount = 1;
                
                Tween.Move(ecb,0, entity, start, end, duration);
            }).Schedule();
commented

I think I've reproduced the bug. Let me find some time to fix it, thanks!

commented

This issue has been fixed in v0.5.1. Please update the package.

Thanks for the report, especially for such a really common case.