Hi all, I’m trying to use the nice new createText method, but I see it requires earcut.
In theory that’s no problem, as I do this elsewhere in my project like here when I create a polygon this way:
import * as earcut from “earcut”;
const roundedPlane = CreatePolygon(
But I see that createText doesn’t take earcut as an argument. So I’m not really sure how to make createText recognize the earcut dependency. Any ideas? I looked in the constructor and didn’t see any other obvious places.
In the create polygon method it’s documented clearly where earcut goes in the constructor: BABYLON | Babylon.js Documentation (babylonjs.com)