Merged in playemgames/unity-ui-extensions/playemgames/added-onvalidate-and-updatequadimage-to--1469821382746 (pull request #25)
Added OnValidate and UpdateQuadImage(); to OnPopulateMesh(); to position the images correctly on text input. --HG-- branch : develop_5.3pull/413/head
commit
2f6aca2d4c
|
@ -39,6 +39,14 @@ namespace UnityEngine.UI.Extensions
|
||||||
UpdateQuadImage();
|
UpdateQuadImage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
protected override void OnValidate()
|
||||||
|
{
|
||||||
|
base.OnValidate();
|
||||||
|
UpdateQuadImage();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// After parsing the final text
|
/// After parsing the final text
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -81,7 +89,7 @@ namespace UnityEngine.UI.Extensions
|
||||||
{
|
{
|
||||||
foreach (IconName icon in inspectorIconList)
|
foreach (IconName icon in inspectorIconList)
|
||||||
{
|
{
|
||||||
Debug.Log(icon.sprite.name);
|
// Debug.Log(icon.sprite.name);
|
||||||
iconList.Add(icon.name, icon.sprite);
|
iconList.Add(icon.name, icon.sprite);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -229,6 +237,7 @@ namespace UnityEngine.UI.Extensions
|
||||||
}
|
}
|
||||||
hrefInfo.boxes.Add(new Rect(bounds.min, bounds.size));
|
hrefInfo.boxes.Add(new Rect(bounds.min, bounds.size));
|
||||||
}
|
}
|
||||||
|
UpdateQuadImage();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue