There is an included Event that you can use for this, called “Mouse Pick” and found under “Events/Input” subcategory.
The Flow output is called whenever the player clicks the mouse on some collider in the scene (you can also set a LayerMask in the node’s inspector) and the Pick Info output is a RaycastHit type containing the info.
Let me know if that works for you.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Attachments:
MousePickEvent.png
Login
Register
By registering on this website you agree to our Privacy Policy.