How can i disable right click button on scenes?


I was facing a little problem but i dont get excat soln of this problem.

The problem was that when i click right click and move mouse while pressing click the all scene and material changing there position but i dont need it i want to disable this things , i want to disable right click button on mesh so they stop there changing position.

Can anyone help? how can i solve this Problem

You can remove the button reference from the buttons array in the camera mouse input:

Babylon.js Playground (

1 Like

Can you give me the code you removed?

it is right there in the playground. the line stating the buttons array

1 Like

Okay thnx :slight_smile: