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

Grid Layout Group Run In Edit Mode#

UI / Layout / Grid Layout Group / Grid Layout Group Run In Edit Mode

  • Can Read

  • Can Write

Description#

The Run In Edit Mode property of the Grid Layout Group 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
{
    [Get]
    [Set]
    
    [Title("Grid Layout Group Run In Edit Mode")]
    [Category("UI/Layout/Grid Layout Group/Run In Edit Mode")]
    [Description("The Run In Edit Mode property of the Grid Layout Group component")]
    
    [Image(typeof(IconGridLayoutGroup), ColorTheme.Type.TextLight)]
    [Keywords("UI, Layout")]
    
    [Serializable]
    public class GenTypeBool_GridLayoutGroup_RunInEditMode : TypeBool
    {
        [SerializeField] private GetGameObject m_GridLayoutGroup = new GetGameObject(
            new GenTypeGameObject_GridLayoutGroup()
        );
        
        public override bool GetPreview(GameObject source)
        {
            GameObject instance = this.m_GridLayoutGroup.GetPreview(source);
            if (instance == null) return default;
            
            GridLayoutGroup component = instance.GetComponent<GridLayoutGroup>();
            return component != null ? component.runInEditMode : default;
        }
        
        public override bool Get(Args args)
        {
            GridLayoutGroup instance = this.m_GridLayoutGroup.Get<GridLayoutGroup>(args);
            return instance != null
                ? instance.runInEditMode
                : default;
        }
        
        public override void Set(bool value, Args args)
        {
            GridLayoutGroup component = this.m_GridLayoutGroup.Get<GridLayoutGroup>(args);
            if (component != null) component.runInEditMode = (bool) value;
        }
        
        public override string ToString()
        {
            return $"{this.m_GridLayoutGroup} Run In Edit Mode";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

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