TextInlineSprite icon indicating copy to clipboard operation
TextInlineSprite copied to clipboard

UGUI图文混排 unity version: 2017.2+

Results 26 TextInlineSprite issues
Sort by recently updated
recently updated
newest added

请问:您的工程emoji_lxh.asset 动态表情是如何生成的呢?

下载的主干最新版,HrefParser没有实现,InlineManager里面也将atlasID

偶然发现当换行时,有个图标位置不准确![image](https://user-images.githubusercontent.com/5093542/46138818-83a40600-c27f-11e8-929b-0e773bb03e2c.png) ![image](https://user-images.githubusercontent.com/5093542/46138868-ab936980-c27f-11e8-8636-3348e0946e76.png) 当把文本"Textsssss"增加多一个字母后,就正确了 ![image](https://user-images.githubusercontent.com/5093542/46138925-d54c9080-c27f-11e8-877d-bb868643bd07.png)

在纯文本的情况下是正确,但是当有图片和链接的时候,就不正确了。 图片连接数量多的时候(比如长度达到10行),可以非常明显的看到问题。

![image](https://user-images.githubusercontent.com/20940695/31944463-c556bfd8-b8fe-11e7-83d4-2e1cf2230a26.png) 我动态修改panel_text下面的txt内容会出现上面图片的情况,但是我静态输入在text里的话就不会 发放奖励[0#money_0]5[0#money_1]500K[0#money_2]5[0#money_3]5[0#money_4]5

原来的代码,下划线部分,如果超链接需要换行,下划线,就出现BUG了 ![image](https://cloud.githubusercontent.com/assets/17958662/23389532/81b07b50-fda3-11e6-9625-4c5090cd784f.png) 然后我基于InlieSpriteText.cs来修改代码,解决了拉伸和换行的BUG问题,现在效果是: ![image](https://cloud.githubusercontent.com/assets/17958662/23394548/cee1bcec-fdc4-11e6-8a0e-cfac374f7db7.png) 代价是下划线要画很多条: ![image](https://cloud.githubusercontent.com/assets/17958662/23394552/d3ecba2a-fdc4-11e6-8b32-cf09b77af48b.png) 这个方案其实也是治标不治本,只是在原基础代码上,更快速去实现效果 希望有更好的解决方案 具体代码为: 新增一个list变量 ```C# List unLineVertsPos = new List(); //下划线使用 X坐标,Y坐标, Z长度 ``` 然后在OnPopulateMesh方法中新增 ```C# int lineheight = cachedTextGenerator.lines[0].height; IList charinfos = cachedTextGenerator.characters;...