I'm getting error an error on this piece of code:
if (EventSystem.current.IsPointerOverGameObject())
return;
The error:
NullReferenceExpection: object reference not set to an instance of an object playercontroller.update() { at assets/script/palyer/playercontroller.cs:21)
Any solution to this?
EventSystem
object was removed from the canvas. Right click -> UI -> EventSystem to add it back \$\endgroup\$