Why doesn't IPointerclickhandler work in UI
I'm trying to make inventory and using Ipointerclickhandler and OnPointerClick event. Trying to make it so that clicking the bag it opens and closes, you can click item in your inventory to use, you can drag and drop items etc.. you get my idea) I have all needed codes done (at least followed the guide, in which it did worked just fine and changing it to pointerdown it does send raycast when debugging, but for some reason it doesn't work with "click") Right now nothing works when I click, bag doesn't open/close, I can't click any items in the inventory.. only works when using input B to open/close the bag. I would be happy if someone has idea what's wrong or what to do to solve the problem?
Your answer
Follow this Question
Related Questions
Reference a variable of another script 2 Answers
Unity - Problem with clicking 0 Answers
replace "OnPress" (button) by "OnMouseDown" (collider) 0 Answers
Why isn't there a simple way to check, if the pointer is over any ui object? 2 Answers
Tapping in the same place of touchscreen doesn't call OnPointerDown method 0 Answers