I Have Multiple buttons created using for loop with a method. The method will log the clicked button on the console, but when the buttons are the clicked, the method of the last created button in the loop only works. Please help me with the issue.
Here’s the Babylon PG that illustrates the issue, Open console to check the method call.
https://playground.babylonjs.com/#3VMTI9#530