---
tags:
    - "UI, User, Interface, TMP, Text, Mesh, Pro"
---

# TMP Text Tint All Sprites

[UI](../../index.md) / [Graphic](../index.md) / [TMP Text](index.md) / **TMP Text Tint All Sprites**

## Description

Compares the Tint All Sprites property of TMP Text component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| TMP Text |  |

## 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;
using TMPro;

namespace VisualScript.Runtime
{
    [Title("TMP Text Tint All Sprites")]
    [Category("UI/Graphic/TMP Text/Tint All Sprites")]
    [Description("Compares the Tint All Sprites property of TMP Text component to another value")]
    
    [Image(typeof(IconUIText), ColorTheme.Type.Blue)]
    [Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
    
    [Parameter("TMP Text")]
    
    [Serializable]
    public class GenConditionBool_TMP_Text_CheckTintAllSprites : Condition
    {
        [SerializeField] private GetGameObject m_TMP_Text = new GetGameObject(
            new GenTypeGameObject_TMP_Text()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Tint All Sprites");
            return $"{this.m_TMP_Text} {member}";
        }
        
        protected override bool Run(Args args)
        {
            TMP_Text component = this.m_TMP_Text.Get<TMP_Text>(args);
            if (component == null) return false;
            
            return component.tintAllSprites;
        }
    }
}


```

