- Home /
Detect UI Panel click
Hi, i'm try to detect a click directly on Panel, i tried everything that i know, like currentSelectedGameObject of EventSystem, PointerClickHandler.. but i got unsuccessful attempts. And my Panel are instanced to my GameObject/Script(the script is a Component of the GameObject).
I'm try this correctly ? 'Cause another objects i can detect perfectly, like Button. Only the Panel i can't.
Answer by bennett_apps · Aug 04, 2018 at 11:45 PM
Just add a button component to the object. Then plug your function into the button component
Wow! Very simple and efficient! Thanks you very much !
Your answer
Follow this Question
Related Questions
GameObject.setActive(true) not working despite children and parents are active 1 Answer
Translating GameObjects in AR onto a Panel? 0 Answers
Game Object Not Working Properly 0 Answers
Open and close UI Menu on background mouse click 1 Answer
Trouble adding score when specific object is clicked. (C#) 1 Answer