Closed pippinmole closed 4 years ago
Ahoy!
That is what DOTween's safe mode is about: capturing these errors and killing the tween instead of stopping because of errors. Buuut, in the Preferences you can set the log behaviour to Verbose or Default instead of Errors-Only, which will throw a warning when things like this happen.
As a secondary note, RectTransform have a different coordinates system than world objects, so you should use DOAnchorPos (which uses the same X/Y coordinates you see in the RectTransform's Inspector) instead of DOLocalMove.
this.RectTransform.DOLocalMove(position, positionDuration);
if RectTransform is null, it won't log anything :( Just spend about 5 hours trying to debug this error.