How to write with DynamicTexture to achieve line break, thank you for your reply
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
Meanwhile, again welcome to our Community and have a great day
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. 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