You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since bool cast operator of UnityEngine.Object does the same thing as comparing to null, the warning should be shown as same. Otherwise, it can mislead users to use bool cast instead, which is worse practice as it is less explicit.
The text was updated successfully, but these errors were encountered:
The warning, Avoid null comparisons against UnityEngine.Object subclasses shows for this code:
But not showing for this code:
Since bool cast operator of
UnityEngine.Object
does the same thing as comparing tonull
, the warning should be shown as same. Otherwise, it can mislead users to use bool cast instead, which is worse practice as it is less explicit.The text was updated successfully, but these errors were encountered: