Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Scroll Rect Rebuild#

UI / Scroll / Scroll Rect / Scroll Rect Rebuild

Description#

Executes the Rebuild method on the Scroll Rect component

Parameters#

Name Description
Executing

Code#

// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.UI;

namespace VisualScript.Runtime
{
    [Title("Scroll Rect Rebuild")]
    [Category("UI/Scroll/Scroll Rect/Rebuild")]
    [Description("Executes the Rebuild method on the Scroll Rect component")]
    
    [Image(typeof(IconScrollRect), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Executing")]
    
    [Serializable]
    public class GenInstructionScrollRect_Rebuild_1 : Instruction
    {
        [SerializeField] private GetGameObject m_ScrollRect = new GetGameObject(
            new GenTypeGameObject_ScrollRect()
        );
        
        [SerializeField] private CanvasUpdate m_Executing = default;
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Rebuild");
            return $"{this.m_ScrollRect} {method} ({this.m_Executing})";
        }
        
        protected override Awaitable Run(Args args)
        {
            ScrollRect component = this.m_ScrollRect.Get<ScrollRect>(args);
            if (component == null) return Done;
            
            component.Rebuild(
                this.m_Executing
            );
            
            return Done;
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.