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
No related branches found
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.
Finish editing this message first!
Please register or to comment