public void UpdateView() { callback = option.callback; tite.text = option.title; tite.gameObject.SetActive(!string.IsNullOrEmpty(option.title)); image.sprite = option.image; image.gameObject.SetActive(null != option.image); message.alignment = (null != option.image) ? TextAnchor.MiddleLeft : TextAnchor.MiddleCenter; message.gameObject.SetActive(!string.IsNullOrEmpty(option.message)); message.text = option.message.Trim() + "\n"; message.fontSize = option.fontSize; message.color = option.messageColor.HexToRGBColor(); contentGroup.SetActive(option.image != null || !option.message.Trim().IsNulOrEmpty()); buttonGroup.gameObject.SetActive((option.buttons != null && option.buttons.Length > 0)); UpdateButtons(); //LayoutRebuilder.ForceRebuildLayoutImmediate(contentLGroup.GetRectTransform()); LayoutRebuilder.ForceRebuildLayoutImmediate(vContentLGroup.GetRectTransform()); }