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

Graphic Default Graphic Material#

UI / Graphic / Graphic Default Graphic Material

Description#

Compares the Default Graphic Material static property of Graphic class to another value

Parameters#

Name Description
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("Graphic Default Graphic Material")]
    [Category("UI/Graphic/Default Graphic Material")]
    [Description("Compares the Default Graphic Material static property of Graphic class to another value")]
    
    [Image(typeof(IconBrush), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionMaterial_Graphic_CheckDefaultGraphicMaterial : Condition
    {
        [SerializeField] private GetMaterial m_Value = new GetMaterial();
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Graphic");
            string member = TextUtils.ThemeAsKeyword("Default Graphic Material");
            return $"{className} {member} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            return Graphic.defaultGraphicMaterial == this.m_Value.Get(args) as Material;
        }
    }
}

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