Jump to content

button.onPointerDownObservable stop working


Recommended Posts


I am trying to develop one tool to draw walls in a grid, and I use button.onPointerDownObservable.add and scene.onPointerObservable.add commands together but I think they are conflicting, because after the second is used the first stop to work!

The playground is https://www.babylonjs-playground.com/#2KKVBH#40

To use the code you click on grid and form some quad space with the last click on top of the first one.

If you DO NOT click up the grid to change the camera position, you can go back to top view by clicking the button, BUT after clicking the grid to form the quad space the button DO NOT work anymore!

Somebody can help?


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...