How to bind the mouse click event to Custom Mesh?

use CustomMeshComponent Create Custom Mesh ,but How to bind the mouse click event to Custom Mesh?

They way you got it is correct. Make sure you enable Mouse Cursor and Enable click Events in your Controller. Also make sure Collision is setup properly. Alternatively you can do a linetrace from camer forward to projected mouse Position in Worldspace and go from there.

Thanks for your reply。。
but,

217713-2.png

and,i print Is Collision Enabled is true…

So whats up with “Show Mouse Cursor” unchecked? Asside from that remove any UI elements you got temporarly while testing, they can Block mouse events even if they are Invisible to the Eye.

No additional changes whatsoever works right from the get go :stuck_out_tongue_winking_eye: