uGUI_LinkImageText
uGUI_LinkImageText copied to clipboard
Unity uGUI Text support insert link and image
很奇怪,我一段话里面有两个超链接,第一个能点中,获取href第二个无论如何点击也不能获取到。大概原因是 if (hrefInfo.startIndex >= toFill.currentVertCount)这个条件满足了,导致第二个超链接没有被加入到boxes中,请问怎么破~
似乎是unity在2019中对于text组件的顶点做了优化,导致每次获取到的顶点数据的错位 GetOutputText(string outputText) var hrefInfo = new HrefInfo { startIndex = s_TextBuilder.Length * 4, // 超链接里的文本起始顶点索引 endIndex = (s_TextBuilder.Length + match.Groups[2].Length - 1) * 4 + 3, name = group.Value...
警告内容为:using rich text with input is unsupported Text内容无法正常显示,替换官方其他Text组件虽然也有上面的警告,但却可以正常显示
NewTy yxtjuj 我加了一个 空格 然后把text的宽度改小,换行有问题 NewTy yxt图片juj 但是去掉空格,显示正确的,请问这是个什么情况,大神
插入图片有黑点
图片位置有黑点 用了去除黑点的代码真机上还是有,这个地方减3是什么意思? toFill.PopulateUIVertex(ref vert, endIndex - 3); Vector3 pos = vert.position; for (int j = endIndex, m = endIndex - 3; j > m; j--) { toFill.PopulateUIVertex(ref vert, endIndex); vert.position...