warnIgnoredOnCompleteIfTargetDestroyed
outputs an error, not a warning.
#111
-
In the warnOnCompleteIgnored method of ReusableTween.cs, I understand that if I don't want to display a message, I can specify warnIgnoredOnCompleteIfTargetDestroyed = false. P.S. Whether it's an error or a warning makes a big difference to me, because it affects whether the Developer Console starts up automatically or whether it sends its own error report. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey! The error is the designed behavior even though the setting is called "warn": PrimeTween is "warning" the user by displaying an error :) This error message was a cornerstone design decision in PrimeTween and it goes by something like "PrimeTween should always warn users about potential errors and should never silence potential problems". In the case of destroying an object with OnComplete() callback on it, I wanted users to be aware of such pitfalls by displaying an error instead of a warning because users usually ignore warnings as non-critical. But in the case of ignoring OnComplete() callback, this can cause serious problems. There is a |
Beta Was this translation helpful? Give feedback.
Hey! The error is the designed behavior even though the setting is called "warn": PrimeTween is "warning" the user by displaying an error :)
This error message was a cornerstone design decision in PrimeTween and it goes by something like "PrimeTween should always warn users about potential errors and should never silence potential problems".
In the case of destroying an object with OnComplete() callback on it, I wanted users to be aware of such pitfalls by displaying an error instead of a warning because users usually ignore warnings as non-critical. But in the case of ignoring OnComplete() callback, this can cause serious problems.
There is a
warnIfTargetDestroyed
parameter which you can…