The ?? operator performs reference comparisons and this can be problematic with UnityEngine.Object-derived objects which compare to null but aren't actually null references (eg. destroyed objects).
Explicitly null-checking the canvas.worldCamera property correctly uses the overridden operator which in turn avoids a potential bug.
Thank you for bringing this to my attention. I won't pull this PR because with each commit, I also try to release a .unitypackage. But I'll include this bugfix in the next release.
The
??
operator performs reference comparisons and this can be problematic withUnityEngine.Object
-derived objects which compare to null but aren't actually null references (eg. destroyed objects).Explicitly null-checking the
canvas.worldCamera
property correctly uses the overridden operator which in turn avoids a potential bug.