event.additionalData undefined for certain Triggers

Inside the ActionManager, multiple Triggers based on Pointer Events are available, e.g.:

  • OnPickTrigger
  • OnLeftPickTrigger
  • OnPickDownTrigger

I noticed that the event property “additionalData” is sometimes undefined, depending on which trigger was used.

An overview of the various triggers and their respective behavior regarding the “additionalData” property can be seen in the following Playground link.

Demo: https://playground.babylonjs.com/#S5URIE#1

Is there a particular reason for not having this property filled for certain Triggers, or could this be fixed in future versions?

They should have been there, opened a PR to fix it, thanks for bringing this to our attention :slight_smile: Pass pick result to triggers missing it. by carolhmj · Pull Request #14111 · BabylonJS/Babylon.js (github.com)


Wow, thank you for this very fast and helpful response! :heart_eyes:

1 Like