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

Image Use Sprite Mesh#

UI / Graphic / Image / Image Use Sprite Mesh

Description#

Compares the Use Sprite Mesh property of Image component to another value

Parameters#

Name Description
Image

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("Image Use Sprite Mesh")]
    [Category("UI/Graphic/Image/Use Sprite Mesh")]
    [Description("Compares the Use Sprite Mesh property of Image component to another value")]
    
    [Image(typeof(IconUIImage), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Image")]
    
    [Serializable]
    public class GenConditionBool_Image_CheckUseSpriteMesh : Condition
    {
        [SerializeField] private GetGameObject m_Image = new GetGameObject(
            new GenTypeGameObject_Image()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Use Sprite Mesh");
            return $"{this.m_Image} {member}";
        }
        
        protected override bool Run(Args args)
        {
            Image component = this.m_Image.Get<Image>(args);
            if (component == null) return false;
            
            return component.useSpriteMesh;
        }
    }
}

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