Dynamic Texture Multiple drawText

This only ever renders the last drawText in a series.

https://playground.babylonjs.com/#5ZCGRM#2054

Is it possible to use multiple drawText, ideally each with a different font & position? So, not simply string merging.

1 Like

Would totally recommend the Babylon GUI for this. The Babylon GUI | Babylon.js Documentation

We have an awesome new editor too that can help you do your layout quickly. Then you can use that to project right onto your plane with createForMesh Will show additional examples later. :slight_smile:

1 Like

If you pass undefined or null for the clear color in the second call to drawText then it wont clear the texture, like below. :slightly_smiling_face:

https://playground.babylonjs.com/#5ZCGRM#2056

1 Like

This was it, I was passing null clear color on the wrong/top one when testing.

1 Like