Babylonjs 5.0 Dynamic Texture Context Interface Changes

Hey,

The experience I’ve created is reliant on the CanvasRenderingContext2D exposed on dynamic texture (in 4.2) to be passed on to middleware that renders based on that interface. I’ve noticed that in 5.0 this context has been changed to an abstracted type that appears to support only a subset at glance. Is this still a CanvasRenderingContext2D under the hood? Or will specific functions not be available and cause really bad things to happen in certain cases.

Regards,
Liam

Hey!
yes this is still a CanvasRenderingContext2D for Babylon.js. We introduced the interface to support Babylon Native :slight_smile:

2 Likes