public override void Fold() { base.Fold(); if (isFolded) { foldoutButton.GetComponentInChildren <Text>().text = ">\n>\n>"; } else { foldoutButton.GetComponentInChildren <Text>().text = "<\n<\n<"; } }
public void AdjustMain() { if (isFolded) { //foldoutButton.Fold(); foldoutButton.GetComponentInChildren <Text>().text = "<"; //mainPanel.rect.anchorMin = new Vector2(anchorFoldedMax.x, mainPanel.rect.anchorMin.y); //mainPanel.rect.anchoredPosition = Vector2.zero; } else { //foldoutButton.Fold(); foldoutButton.GetComponentInChildren <Text>().text = ">"; //mainPanel.rect.anchorMin = new Vector2(anchorFullMax.x, mainPanel.rect.anchorMin.y); //mainPanel.rect.anchoredPosition = Vector2.zero; } }