Skip to content

warnIgnoredOnCompleteIfTargetDestroyed outputs an error, not a warning. #111

Answered by KyryloKuzyk
kyubuns asked this question in General
Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KyryloKuzyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #109 on September 28, 2024 15:12.