Skip to content
Snippets Groups Projects
Commit 38c5003a authored by John Schihada's avatar John Schihada
Browse files

Fixed Scrollbar-Issue

parent 34555ee6
No related branches found
No related tags found
No related merge requests found
...@@ -48,11 +48,11 @@ public void setScroll(Scroll s) { ...@@ -48,11 +48,11 @@ public void setScroll(Scroll s) {
this.ParameterDisplays = new GameObject[s.declarations.Length]; this.ParameterDisplays = new GameObject[s.declarations.Length];
for (int i = 0; i < s.declarations.Length; i++) { for (int i = 0; i < s.declarations.Length; i++) {
var obj = Instantiate(parameterDisplayPrefab, Vector3.zero, Quaternion.identity, transform); var obj = Instantiate(parameterDisplayPrefab, Vector3.zero, Quaternion.identity, transform);
obj.GetComponent<RectTransform>().localPosition = GetPosition(i); //obj.GetComponent<RectTransform>().localPosition = GetPosition(i);
obj.transform.GetChild(1).gameObject.GetComponent<TextMeshProUGUI>().text = s.declarations[i].description; obj.transform.GetChild(1).gameObject.GetComponent<TextMeshProUGUI>().text = s.declarations[i].description;
obj.transform.SetParent(viewport); obj.transform.SetParent(viewport.GetChild(0));
//TODO: Remvoe this reaaaaly bad hack //TODO: Remvoe this reaaaaly bad hack
obj.transform.localScale = Vector3.one; //obj.transform.localScale = Vector3.one;
this.ParameterDisplays[i] = obj; this.ParameterDisplays[i] = obj;
} }
gameObject.transform.GetChild(1).gameObject.GetComponent<TextMeshProUGUI>().text = s.description; gameObject.transform.GetChild(1).gameObject.GetComponent<TextMeshProUGUI>().text = s.description;
......
...@@ -180,7 +180,7 @@ RectTransform: ...@@ -180,7 +180,7 @@ RectTransform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8358525157842135574} m_GameObject: {fileID: 8358525157842135574}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
......
This diff is collapsed.
fileFormatVersion: 2 fileFormatVersion: 2
guid: b543d9677cbde534ab69c0a229bfdb06 guid: e8183f1330bd6124a9a9bb4d35ef2216
folderAsset: yes PrefabImporter:
DefaultImporter:
externalObjects: {} externalObjects: {}
userData: userData:
assetBundleName: assetBundleName:
......
This diff is collapsed.
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