I was wondering if there’s a way for multiple objects to use the same action manager for this rollover effect for example so code isn’t repeated.
https://www.babylonjs-playground.com/#YIU90M#92
Thank you for any help
I was wondering if there’s a way for multiple objects to use the same action manager for this rollover effect for example so code isn’t repeated.
https://www.babylonjs-playground.com/#YIU90M#92
Thank you for any help
I just wrapped your ActionManager in a function that will attach it to the “mesh” argument,
maybe not the best solution but it works:
https://www.babylonjs-playground.com/#YIU90M#93
UPDATE!:
For a more “cleaner” solution check this approach:
https://www.babylonjs-playground.com/#YIU90M#95
Here we use only one ActionManager,
Hope that can help you
That’s amazing, thank you very much for your help and the lesson