using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ScrollViewUpdate : MonoBehaviour { private ScrollRect scrollbar; private VerticalLayoutGroup verticalLayoutGroup; void Start() { scrollbar = GetComponent(); verticalLayoutGroup = GetComponent(); } public void UpdateScroll() { LayoutRebuilder.ForceRebuildLayoutImmediate(scrollbar.content); } private void FixedUpdate() { UpdateScroll(); } }