public void RefreshView(Dialogue_ModelCollection modelCollection) { DialogueTextMesh.text = modelCollection.DialogueWindowString; LayoutRebuilder.ForceRebuildLayoutImmediate(TextMeshRect); Tile.sizeDelta = new Vector2(Tile.sizeDelta.x, TextMeshRect.sizeDelta.y + 5f); DialogueTextMesh.transform.localPosition = new Vector3(DialogueTextMesh.transform.localPosition.x, (TextMeshRect.sizeDelta.y / 2f) * -1, DialogueTextMesh.transform.localPosition.z); }
public void ConstructView(Dialogue_ModelCollection modelCollection) { RefreshView(modelCollection); }