IPointerClickHandler Not working in build version of the game.

OnPointerClick from IPointerClickHandler, or any other event is not being registered for the built version of the game. It works fine on Unity editor.

I have implemented interface, added collider, EventSystem present in the scene and added physics2Draycaster components on the camera.

Everything works fine on editor means I think I have set up all correctly. But when I build the game out in windows standalone player, it doesn’t register the event at all. Events do register correctly for the UI part.

Anyone with any ideas?

I have just tried it using normal BoxCollider and PhysicsRaycaster instead of 2D counter version and it seems to work. I think this maybe a bug in Unity… Or there is something that I am not aware of as to make it work in built version of the game. :frowning: