About textWrapping

#1

Hi everyone…
I did something. But i couldn’t run textWrapping. Some one can show me the where is my mistake or how to use textWrapping?

Thank you…

My PG sample:
https://www.babylonjs-playground.com/#5ZCGRM#66

0 Likes

Static Text to show Length of Object
#2

You are mixing dynamicTexture which is used to add material to a mesh and the use of BABYLON.GUI which requires an AdvancedDynamicTexture

You can do text wrapping with the GUI but not directly with dynamicTexture.

You might find this section useful Use Dynamic Texture - Babylon.js Documentation

Or this might be more what you mean using GUI https://www.babylonjs-playground.com/#44KYLP#8

3 Likes

#3

Thank you i solved with your way…

0 Likes