Skip to content
Snippets Groups Projects
Commit d81fe0e0 authored by Richard Marcus's avatar Richard Marcus
Browse files

fact UI activates with tab, but works only once..

parent fcabc55f
Branches
No related tags found
No related merge requests found
......@@ -51,6 +51,8 @@ public void setScroll(Scroll s) {
obj.GetComponent<RectTransform>().localPosition = GetPosition(i);
obj.transform.GetChild(1).gameObject.GetComponent<TextMeshProUGUI>().text = s.declarations[i].description;
obj.transform.SetParent(viewport);
//TODO: Remvoe this reaaaaly bad hack
obj.transform.localScale = Vector3.one;
this.ParameterDisplays[i] = obj;
}
gameObject.transform.GetChild(1).gameObject.GetComponent<TextMeshProUGUI>().text = s.description;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment