From ec0292b579633ab0e379ab79d8ad647cada15ca4 Mon Sep 17 00:00:00 2001 From: sushanta chakraborty Date: Mon, 5 Dec 2016 12:29:57 +0000 Subject: [PATCH] // 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 --- Scripts/Controls/TextPic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Controls/TextPic.cs b/Scripts/Controls/TextPic.cs index 6177866..0164176 100644 --- a/Scripts/Controls/TextPic.cs +++ b/Scripts/Controls/TextPic.cs @@ -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();