---
tags:
    - "UI, User, Interface"
---

# Graphic Default Graphic Material

[UI](../index.md) / [Graphic](index.md) / **Graphic Default Graphic Material**

## Description

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

## Parameters

| Name | Description |
| :--- | :---------- |
| Value |  |

## Code

```cs
// <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;
        }
    }
}


```

