// 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-1480940993474release
parent
5cbfc70e30
commit
ec0292b579
|
@ -190,7 +190,7 @@ namespace UnityEngine.UI.Extensions
|
||||||
protected override void OnPopulateMesh(VertexHelper toFill)
|
protected override void OnPopulateMesh(VertexHelper toFill)
|
||||||
{
|
{
|
||||||
var orignText = m_Text;
|
var orignText = m_Text;
|
||||||
m_Text = m_OutputText;
|
m_Text = GetOutputText();
|
||||||
base.OnPopulateMesh(toFill);
|
base.OnPopulateMesh(toFill);
|
||||||
m_Text = orignText;
|
m_Text = orignText;
|
||||||
positions.Clear();
|
positions.Clear();
|
||||||
|
|
Loading…
Reference in New Issue