How to write with DynamicTexture to achieve line break

How to write with DynamicTexture to achieve line break, thank you for your reply :slightly_smiling_face:

Hi and welcome to the Community,
A nice first post for a question that has been eluded in a previous request and for which I’d also like to understand why we can apparently not achieve this (without breaking it down in multiple DT).
I tried my workaround with a variety of approaches but no, just couldn’t do it.
The most obvious method (\n + “”) works fine for the GUI but is not accounted for a dynamicTexture. Wonder why this is.
Hopefully @labris or @Evgeni_Popov will have some insight on this. Shouldn’t be too long :hourglass_flowing_sand:
Meanwhile, again welcome to our Community and have a great day :sunglasses:

It seems it is not supported for DynamicTexture. See How add backgroud color to DynamicTexture - #3 by Dieterich for eg.

My take is that DynamicTexture is not specifically geared toward texts (it simply is a wrapper around a 2D context), so there’s no helper functions for that in the class, contrary to the text control of the GUI that can do a number of things with texts.


Here is a very basic way of doing multiline text with one dynamic texture.


That was really smart. :smiling_face_with_three_hearts: Even @Evgeni_Popov didn’t think of it and neither did I. Very good. I’m gonna bookmark this.

That is cool ! Thanks for your reply :slightly_smiling_face: