Does anybody have any idea what this error means?
NullReferenceException Unity.Engine.GameObject.GetComponent[Collider]() (at C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineGameObjectBindings.gen.cs:38)
My project was working fine then out of nowhere this happens every frame, Does anybody know what this means?
Comment
Answer by rish209 · Aug 04, 2016 at 11:53 PM
The NullReferenceException means that the GetComponent[Collider]() is failing for some reason. There is likely some condition under which the object you are accessing doesn't have a collider.
Answer by eitanwass · Aug 05, 2016 at 03:09 AM
It might be that the object you are trying to access doesn't have a collider. Also check if you wrote 'GetComponent[Collider]()' instead of 'GetComponent()'