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

Aspect Ratio Fitter Is Aspect Mode Valid#

UI / Layout / Aspect Ratio Fitter / Aspect Ratio Fitter Is Aspect Mode Valid

  • Can Read

  • Cannot Write

Description#

Returns the execution of Is Aspect Mode Valid method on the Aspect Ratio 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
{
    [Get]
    
    [Title("Aspect Ratio Fitter Is Aspect Mode Valid")]
    [Category("UI/Layout/Aspect Ratio Fitter/Is Aspect Mode Valid")]
    [Description("Returns the execution of Is Aspect Mode Valid method on the Aspect Ratio Fitter component")]
    
    [Image(typeof(IconAspectRatioFitter), ColorTheme.Type.TextLight)]
    [Keywords("UI, Layout")]
    
    [Serializable]
    public class GenTypeBool_AspectRatioFitter_IsAspectModeValid_0 : TypeBool
    {
        [SerializeField] private GetGameObject m_AspectRatioFitter = new GetGameObject(
            new GenTypeGameObject_AspectRatioFitter()
        );
        
        public override bool Get(Args args)
        {
            AspectRatioFitter component = this.m_AspectRatioFitter.Get<AspectRatioFitter>(args);
            if (component == null) return default;
            
            bool value = (bool) component.IsAspectModeValid();
            
            return value;
        }
        
        public override string ToString()
        {
            return $"{this.m_AspectRatioFitter} Is Aspect Mode Valid";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

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