Switching To UI Not Working As Intended

If you declare the entryPoint as a GameObject then the switch won’t do much as we would be comparing the RectTransform to a GameObject, which is not the same thing.
I’m not sure why it works for the instructor, but unfortunately it didn’t work for me, and through debugging I realized the reason why.

Privacy & Terms