ProfessorF Posted December 30, 2013 Share Posted December 30, 2013 In all the official Babylon.js tutorials, you have: scene.activeCamera.attachControl(canvas); Is there any drawback to instead using: scene.activeCamera.attachControl(window); It seems to work fine. - Nick Quote Link to comment Share on other sites More sharing options...
thecco Posted December 30, 2013 Share Posted December 30, 2013 if instead using window maybe in other controls Input, there will be a problem Quote Link to comment Share on other sites More sharing options...
davrous Posted December 30, 2013 Share Posted December 30, 2013 It depends on what you'd like to build. Without any UI, it's indeed the same as taking control of the full screen canvas. But if you'd like to add some UI stuff in front of the canvas (like a menu with some buttons), you will have to monitor only the canvas behind otherwise you may have issues registering to UI events. GameMonetize and ProfessorF 2 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.