securet Posted December 8, 2016 Share Posted December 8, 2016 is there a safe way to prevent babylon from handling userinput? Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted December 9, 2016 Share Posted December 9, 2016 Hi @securet Could you please elaborate on what you wish to achieve? gryff 1 Quote Link to comment Share on other sites More sharing options...
gryff Posted December 9, 2016 Share Posted December 9, 2016 @securet; got to agree with @aWeirdo , what exactly are you trying to accomplish? Just load a .babylon file - then do nothing. Don't bind the camera to the canvas, don't create an Action Manager and make all meshes unpickable. ... ? cheers.gryff Quote Link to comment Share on other sites More sharing options...
RaananW Posted December 9, 2016 Share Posted December 9, 2016 scene.detachControl(), camera.detachControl(), Alt-F4, all valid in your quest for disabling user input But I second (or third?) my respected colleges, this question requires elaboration. Quote Link to comment Share on other sites More sharing options...
securet Posted December 9, 2016 Author Share Posted December 9, 2016 3 hours ago, aWeirdo said: Hi @securet Could you please elaborate on what you wish to achieve? I want to put a transparent html element on top of the babylon-canvas which handles the ui, so I want to make sure that babylon can benefit from any kind of performance improvement, when it doesn't try to detect userinput in the render loop. Quote Link to comment Share on other sites More sharing options...
RaananW Posted December 9, 2016 Share Posted December 9, 2016 scene.detachControl() And make sure you don't attach the camera. Quote Link to comment Share on other sites More sharing options...
securet Posted December 9, 2016 Author Share Posted December 9, 2016 Ok, ty you all so much! 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.