Something I noticed in the code. If warnEndValueEqualsCurrent is false, the vector is still compared.
if (d.startValue.vector4 == endValueOrDiff.vector4 && d.warnEndValueEqualsCurrent && !shakeData.isAlive) {
Assert.LogWarningWithStackTrace($"Tween's 'endValue' equals to the current animated value: {d.startValue.vector4}, tween: {GetDescription()}.\n" +
$"{Constants.buildWarningCanBeDisabledMessage(nameof(PrimeTweenConfig.warnEndValueEqualsCurrent))}\n", id, target);
}
Vector comparison should be the last thing evaluated:
if (d.warnEndValueEqualsCurrent && !shakeData.isAlive && d.startValue.vector4 == endValueOrDiff.vector4) {
Assert.LogWarningWithStackTrace($"Tween's 'endValue' equals to the current animated value: {d.startValue.vector4}, tween: {GetDescription()}.\n" +
$"{Constants.buildWarningCanBeDisabledMessage(nameof(PrimeTweenConfig.warnEndValueEqualsCurrent))}\n", id, target);
}
Something I noticed in the code. If warnEndValueEqualsCurrent is false, the vector is still compared.
Vector comparison should be the last thing evaluated: