Reply To: Setting material of clicked object

FlowCanvas Forums Support Setting material of clicked object Reply To: Setting material of clicked object

#1014
Gavalakis
Keymaster

Hey,

There is an included Event that you can use for this, called “Mouse Pick” and found under “Events/Input” subcategory.

MousePickEvent

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:
  1. MousePickEvent.png