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

Content Size Fitter Set Layout Vertical#

UI / Layout / Content Size Fitter / Content Size Fitter Set Layout Vertical

Description#

Executes the Set Layout Vertical method on the Content Size Fitter component

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("Content Size Fitter Set Layout Vertical")]
    [Category("UI/Layout/Content Size Fitter/Set Layout Vertical")]
    [Description("Executes the Set Layout Vertical method on the Content Size Fitter component")]
    
    [Image(typeof(IconContentSizeFitter), ColorTheme.Type.TextLight)]
    [Keywords("UI, Layout")]
    
    [Serializable]
    public class GenInstructionContentSizeFitter_SetLayoutVertical_0 : Instruction
    {
        [SerializeField] private GetGameObject m_ContentSizeFitter = new GetGameObject(
            new GenTypeGameObject_ContentSizeFitter()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Set Layout Vertical");
            return $"{this.m_ContentSizeFitter} {method}";
        }
        
        protected override Awaitable Run(Args args)
        {
            ContentSizeFitter component = this.m_ContentSizeFitter.Get<ContentSizeFitter>(args);
            if (component == null) return Done;
            
            component.SetLayoutVertical();
            
            return Done;
        }
    }
}

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