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
When you do this in Unity:
if (myGameObject == null) {}
It behaves inconsistently with the ?? operator, which also does a null check, but that one does a pure c# null check, and cannot be bypassed to call our custom null check.
Rider 2017.3 no longer suggests to convert to ?? or ?., and Rider 2018.1 will have a warning if you try and use these operators on a type deriving from UnityEngine.Object.
Hello!
As Unity explains:
Source: http://blogs.unity3d.com/2014/05/16/custom-operator-should-we-keep-it
This suggestion might mislead the programmer while comparing UnityEngine.Objects.
Would it be possible to supress it?
Thanks in advance!
PS. Huge thanks for this amazing utility 😄 !
The text was updated successfully, but these errors were encountered: