The TypeScript code here:
let button = BABYLON.GUI.Button.CreateSimpleButton("test", "click");
button.setPaddingInPixels(4);
causes this TSC TypeScript error:
error TS2551: Property 'setPaddingInPixels' does not exist on type 'Button'. Did you mean 'paddingTopInPixels'?
The code works correctly in JavaScript but it errors in TypeScript. Is the method not defined in TypeScript?
Thanks,
Michael