Multiple rows & fonts on the same dynamicTexture

Hey boys & girls,

I have 3 texts which I want to put on the same dynamicTexture.
Now I create a new texture foreach but for performance reasons, I want somehow to draw all on the same texture.

image

Any idea is welcome! Cheers
https://playground.babylonjs.com/#ZNIIQ4#1

Hi! I would recommend using Babylon GUI to create an AdvancedDynamicTexture. On that texture you can create 3 textBlock objects each with its own font! :slight_smile:

Here is the documentation for that: The Babylon GUI | Babylon.js Documentation

1 Like

This PG adds all the different label texts on one dynamicTexture Babylon.js Playground. Perhaps you can adapt it.

1 Like

Thank you. I’ll try both :wink: