Question by
unity_LW-u1whGru1a_Q · Nov 06, 2019 at 11:30 AM ·
uieventui imagescrollviewevent triggering
OnpointerClick not working(parents gameObject has EventTrigger)
Please allow me to use poor English.
What I wanted to do
This question's OnPointerUp & OnPointerDown => OnPointerClick
What I tried
1.Create New Project.
2.Create UI => Image. (Canvas & EventSystems are also created automatically)
3.Attach lick script to created Image Object.(Use OnPointerClick instead of OnPointerDown and OnPointerUp)
4.Play and Check that OnPointerClick works. (OK)
5.Attach EventTrigger to Canvas.
6.Play and Check that OnPointerClick works. (NG:Click does not respond)
7.Add OnPointerDown to Script.
8.Play and Check that OnPointerClick & OnPointerDown works. (OK)
What you want me to tell
I want to run OnPointerClick without adding OnPointerDown to Script.
Comment