// OnPopulateMesh() was getting called before m_OutputText was updated in function UpdateQuadImage(), Due to this, m_HrefInfos.boxes where not getting created, which in further resulted into non clickable text. This is happening in Unity5.5.

So what i did is i assigned m_Text = GetOutputText(); directly in  OnPopulateMesh() function, which solved the problem.

--HG--
branch : sushanta1991/-onpopulatemesh-was-getting-called-befor-1480940993474
pull/413/head
sushanta chakraborty 2016-12-05 12:29:57 +00:00
parent 5cbfc70e30
commit ec0292b579
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ namespace UnityEngine.UI.Extensions
protected override void OnPopulateMesh(VertexHelper toFill)
{
var orignText = m_Text;
m_Text = m_OutputText;
m_Text = GetOutputText();
base.OnPopulateMesh(toFill);
m_Text = orignText;
positions.Clear();