effects-runtime icon indicating copy to clipboard operation
effects-runtime copied to clipboard

[Feature] 文本自动换行

Open longjie2014 opened this issue 11 months ago • 1 comments

🕗 领域

Galacean Effects Runtime

功能

我想咨询下在galacean中对于文本自动换行应该如何来处理,有没有比较好的解决方案。

功能的场景是?

基于模板来占位符来动态替换数据文本数据,对于某些文本比较多的情况下无法实现自动换行。

需要符合什么样的标准?

希望通过占位符实现文字多时自动换行功能。

其它信息

No response

longjie2014 avatar Feb 29 '24 10:02 longjie2014

2.0发布后会自动支持文字换行功能,根据用户设定的最大宽度进行自动换行,不需要设计在编辑器提前占位

Sruimeng avatar Mar 04 '24 06:03 Sruimeng

https://github.com/galacean/effects-runtime/pull/495 修复pr,目前2.0已发布,获取到textItem后使用setAutoWidth‎生效

Sruimeng avatar Aug 26 '24 07:08 Sruimeng