NRA Posted September 27, 2018 Share Posted September 27, 2018 Hi, 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? Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted September 27, 2018 Share Posted September 27, 2018 This is because your textblocks are intersecting the pointers: https://www.babylonjs-playground.com/#2KKVBH#42 (See line #38) NRA 1 Quote Link to comment Share on other sites More sharing options...
NRA Posted September 27, 2018 Author Share Posted September 27, 2018 @Deltakosh thanks a lot! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.