How to check if mesh is clickable

Hello again and again

I have my my blender object (lot of sub meshes inside) and I need to check wether the mesh is clicked if yes do somthing else do else.
so I importte my object from Append() function by getMeshByID() and now I need to make a var state=getIfMeshIsClicked() and the make if(state){}

so there is something like getIfMeshIsClicked() in BJS API ?

Thank you a lot

Anes

https://doc.babylonjs.com/babylon101/picking_collisions
https://doc.babylonjs.com/babylon101/raycasts

A little bit of googling and you will find lots of help on this!

You could also rely on actions which let you bind a trigger and an action:
https://doc.babylonjs.com/how_to/how_to_use_actions