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

# TMP Text Clear Mesh

[UI](../../index.md) / [Graphic](../index.md) / [TMP Text](index.md) / **TMP Text Clear Mesh** UploadGeometry

## Description

Executes the Clear Mesh method on the TMP Text component

## Parameters

| Name | Description |
| :--- | :---------- |
| Upload Geometry |  |

## 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 Clear Mesh")]
    [Category("UI/Graphic/TMP Text/Clear Mesh", "UploadGeometry")]
    [Description("Executes the Clear Mesh method on the TMP Text component")]
    
    [Image(typeof(IconUIText), ColorTheme.Type.Blue)]
    [Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
    
    [Parameter("Upload Geometry")]
    
    [Serializable]
    public class GenInstructionTMP_Text_ClearMesh_1_BoolUploadGeometry : Instruction
    {
        [SerializeField] private GetGameObject m_TMP_Text = new GetGameObject(
            new GenTypeGameObject_TMP_Text()
        );
        
        [SerializeField] private GetBool m_UploadGeometry = new GetBool();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Clear Mesh");
            return $"{this.m_TMP_Text} {method} ({this.m_UploadGeometry})";
        }
        
        protected override Awaitable Run(Args args)
        {
            TMP_Text component = this.m_TMP_Text.Get<TMP_Text>(args);
            if (component == null) return Done;
            
            component.ClearMesh(
                (bool) this.m_UploadGeometry.Get(args)
            );
            
            return Done;
        }
    }
}


```

