I have an ActionManager on a Scene that works correctly, and an ActionManager on a Mesh that does not. Here’s a playground illustrating the problem:
https://playground.babylonjs.com/#XX1UAA#1
In the console you can see that fromScene
is called when you press “1”, which is registered with the scene’s actionManager. But fromMesh
is not called when “2” is pressed. I have a bit of indirection contained in the bindActionToKey
function, but it doesn’t appear to be the problem.
Why isn’t the ActionManager on the Mesh working? I feel like I’m missing something obvious, but the documentation suggests I’m doing everything correctly.
Thanks for your help.