简体   繁体   中英

OnPointerDown doesn't work with Canvas component

I am using canvas component for ovveride sorting, and when i use a object with canvas component, OnPointerDown doesn't detect clicks but when i delete, it can detect cliks, how can i use canvas and OnPointerDown at same object

Canvas

I found the solution just add Graphic Raycaster to object which has canvas component

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM