---
tags:
    - "UI, Layout"
---

# Canvas Get ETC1 Supported Canvas Material

[UI](../../index.md) / [Layout](../index.md) / [Canvas](index.md) / **Canvas Get ETC1 Supported Canvas Material**

## Description

Compares the Get ETC1 Supported Canvas Material static method of Canvas 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("Canvas Get ETC1 Supported Canvas Material")]
    [Category("UI/Layout/Canvas/Get ETC1 Supported Canvas Material")]
    [Description("Compares the Get ETC1 Supported Canvas Material static method of Canvas class to another value")]
    
    [Image(typeof(IconCanvas), ColorTheme.Type.TextLight)]
    [Keywords("UI, Layout")]
    
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionMaterial_Canvas_CheckGetETC1SupportedCanvasMaterial_0 : Condition
    {
        [SerializeField] private GetMaterial m_Value = new GetMaterial();
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Canvas");
            string method = TextUtils.ThemeAsKeyword("Get ETC1 Supported Canvas Material");
            return $"{className} {method} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            Material value = Canvas.GetETC1SupportedCanvasMaterial();
            
            return value == this.m_Value.Get(args) as Material;
        }
    }
}


```

