Reply To: Setting material of clicked object

Forums 💬 FlowCanvas ⚙️ Support Setting material of clicked object Reply To: Setting material of clicked object

#22470
Gavalakis
Keymaster

    Hey,

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

    [attachment file=”MousePickEvent.png”]

    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.