simon_bg Posted July 18, 2016 Share Posted July 18, 2016 Hi guys, I have a mesh with two triggers assigned to its actionManager: ground.actionManager.registerAction(new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, function (event){ console.log("OnPickTrigger"); })); ground.actionManager.registerAction(new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnLongPressTrigger, function (event){ console.log("OnLongPressTrigger"); })); The thing is, when the OnLongPressTrigger is triggered, the OnPickTrigger is also triggered. Is there any way to avoid triggering the onPickTrigger? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 18, 2016 Share Posted July 18, 2016 Hello, you will have to test it in your code...They are both called everytime the scene can call them: https://github.com/BabylonJS/Babylon.js/blob/master/src/babylon.scene.ts#L814 Quote Link to comment Share on other sites More sharing options...
simon_bg Posted July 19, 2016 Author Share Posted July 19, 2016 Thanks, Deltakosh! 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.