---
tags:
    - "UI, User, Interface"
---

# Scrollbar Rebuild

[UI](../../index.md) / [Scroll](../index.md) / [Scrollbar](index.md) / **Scrollbar Rebuild**

## Description

Executes the Rebuild method on the Scrollbar component

## Parameters

| Name | Description |
| :--- | :---------- |
| Executing |  |

## Code

```cs
// <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("Scrollbar Rebuild")]
    [Category("UI/Scroll/Scrollbar/Rebuild")]
    [Description("Executes the Rebuild method on the Scrollbar component")]
    
    [Image(typeof(IconScrollBar), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Executing")]
    
    [Serializable]
    public class GenInstructionScrollbar_Rebuild_1 : Instruction
    {
        [SerializeField] private GetGameObject m_Scrollbar = new GetGameObject(
            new GenTypeGameObject_Scrollbar()
        );
        
        [SerializeField] private CanvasUpdate m_Executing = default;
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Rebuild");
            return $"{this.m_Scrollbar} {method} ({this.m_Executing})";
        }
        
        protected override Awaitable Run(Args args)
        {
            Scrollbar component = this.m_Scrollbar.Get<Scrollbar>(args);
            if (component == null) return Done;
            
            component.Rebuild(
                this.m_Executing
            );
            
            return Done;
        }
    }
}


```

