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

# Text Support Rich Text

[UI](../../index.md) / [Graphic](../index.md) / [Text](index.md) / **Text Support Rich Text**

## Description

Compares the Support Rich Text property of Text component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| 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;

namespace VisualScript.Runtime
{
    [Title("Text Support Rich Text")]
    [Category("UI/Graphic/Text/Support Rich Text")]
    [Description("Compares the Support Rich Text property of Text component to another value")]
    
    [Image(typeof(IconUIText), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface, Label")]
    
    [Parameter("Text")]
    
    [Serializable]
    public class GenConditionBool_Text_CheckSupportRichText : Condition
    {
        [SerializeField] private GetGameObject m_Text = new GetGameObject(
            new GenTypeGameObject_Text()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Support Rich Text");
            return $"{this.m_Text} {member}";
        }
        
        protected override bool Run(Args args)
        {
            Text component = this.m_Text.Get<Text>(args);
            if (component == null) return false;
            
            return component.supportRichText;
        }
    }
}


```

