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

Rect Mask 2D Rect Transform#

UI / Mask / Rect Mask 2D / Rect Mask 2D Rect Transform

Description#

Compares the Rect Transform property of Rect Mask 2D component to another value

Parameters#

Name Description
Rect Mask 2D
Value

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("Rect Mask 2D Rect Transform")]
    [Category("UI/Mask/Rect Mask 2D/Rect Transform")]
    [Description("Compares the Rect Transform property of Rect Mask 2D component to another value")]
    
    [Image(typeof(IconRectMask2D), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Rect Mask 2D")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionGameObject_RectMask2D_CheckRectTransform : Condition
    {
        [SerializeField] private GetGameObject m_RectMask2D = new GetGameObject(
            new GenTypeGameObject_RectMask2D()
        );
        
        [SerializeField] private GetGameObject m_Value = new GetGameObject();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Rect Transform");
            return $"{this.m_RectMask2D} {member} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            RectMask2D component = this.m_RectMask2D.Get<RectMask2D>(args);
            if (component == null) return false;
            
            return component.rectTransform == this.m_Value.Get<RectTransform>(args);
        }
    }
}

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