How to deselect when click outside the model

Hello everyone

I try to build a triangle mesh, and when I select each triangle, the triangle change the color to Red, I want to know How can I deselect the model when I click outside the model.
this is my PG:
https://www.babylonjs-playground.com/#VKBJN#886

Hey
you can simply store the last picked face and if there is no hit revert the last picked face color to white :slight_smile:

1 Like

Thank you so much, :pray:t2: I have done it.