Why do we need as GameObject?

Hi Niv, hi Jackie,

In past versions of Unity, casting was required. This was changed in one of the Unity 2017 versions (I think). Game developers who have been using Unity for years still cast with “as GameObject” out of habit. It’s not wrong to do that, just not required anymore.

Has your question been answered?


See also: