Other than using the ‘Depreciated’ code I can not create a text object. I’ve spent an hour in the Scene and TextItem Docs and searched the forum to no avail:(
My attempt just generates the attached error…
Debug.log("Error Below:");
//let xxx = Scene.createText(0,2,0, "Hello World");
//xxx.fontSize = 100;
let yyy = new TextItem();
Unfortunately, due to a bag in a documentation web site, updated methods do not listed by default.
You need to check the Deprecated box in the upper right corner.
For the most of the part it should be fine, since the deprecated methods are typically do not shown in completion, so you won’t stumble upon them during coding.
The exception to this is the cases similar to createText, when the method name stays the same but the signature is changed. In this case one can find an updated version next to deprecated one in the documentation.
For cases when the method was moved or renamed, the documentation usually mentions updated counterpart, if the method was actively used, like distanceTo.