Expected behaviour awaiting a Motion which binding gets destroyed #205
christopher-qde
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's the expected behaviour of code like this, in regards to the motion getting cancelled by AddTo on the destruction of _viewTransform?
await LMotion.Create(_viewTransform.position, targetPos, 3.0f).BindToPosition(_viewTransform).AddTo(_viewTransform);
I feel it usually works if I don't await a
MotionHandle
. Should I add a cancellationToken when awaiting a Motion rather than AddTo? With the pasted example code I seem to get a bunch of reference destroyed expections.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions