I’m trying to somewhat convert my scene to work in VR. This code works in browser desktop/mobile but not in VR:
mesh.actionManager = new BABYLON.ActionManager(scene); mesh.actionManager.registerAction(new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnDoublePickTrigger, myFunction));
Is there another way to do this? I saw this post, but before I rewrite my code I wanted to know If I’m missing something.
I’ll add @RaananW, since he seems to be the VR head.
I’m using the DefaultXRExperience by the way.