uGUI_LinkImageText icon indicating copy to clipboard operation
uGUI_LinkImageText copied to clipboard

Unity2019.4中顶点索引错误

Open KirbyXcode opened this issue 3 years ago • 0 comments

似乎是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 };

在2019中此方法中获得的顶点索数据有误,导致在加入listbox后点击的区域位置偏移

KirbyXcode avatar Aug 13 '21 11:08 KirbyXcode