> For the complete documentation index, see [llms.txt](https://cdmdocs.gitbook.io/unity-figma-importer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cdmdocs.gitbook.io/unity-figma-importer/components/text.md).

# Text

Text nodes in Figma are converted to TextMeshPro components in Unity, preserving the text properties. Supports localization if localization converter is set and the node has a localization key.

<figure><img src="https://1621352894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbxGkHH9nbw4PqGFuLmzb%2Fuploads%2FQE1Maq9jhy3Lhh68ASXJ%2FEkran%20Resmi%202024-05-20%2008.54.53.png?alt=media&amp;token=806741e9-a79e-491c-962b-2609b38af37f" alt="" width="375"><figcaption><p>Unity Importer Plugin running on a Text Node in Figma</p></figcaption></figure>

Properties such as font size, text alignment, wrapping mode, text color etc. are set while importing a text node. Fonts can be automatically set through Figma asset Unity editor window tab "Fonts", more information about fonts can be found in Figma Design documentation page under "Fonts":

{% content-ref url="/pages/flnmkNMSicewLO3bpfGj" %}
[Figma Design](/unity-figma-importer/getting-started/figma-design.md)
{% endcontent-ref %}

### Localization

If a text node is given a Localization Key through Unity Importer Plugin in Figma, text can be localized with the corresponding Localization converter set in the Figma asset Unity editor window under tab "Settings -> Localization".&#x20;

{% hint style="info" %}
In order to use Localization, Unity Localization package should be imported to Unity.
{% endhint %}

Using default Unity Localization (for more information about Unity Localization package: <https://docs.unity3d.com/Packages/com.unity.localization@0.4/manual/index.html>) Converter, keys must be set as: {table\_name}/{localization\_key} in Figma in order to find the corresponding localized string. If everyting is set correctly, text component in Unity is decorated with a "Localize String Event" component with corresponding localized string.

<div><figure><img src="https://1621352894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbxGkHH9nbw4PqGFuLmzb%2Fuploads%2FjQfsRyg77KK7Z5x5nSxN%2FEkran%20Resmi%202024-05-20%2009.56.06.png?alt=media&amp;token=f6e3d6ea-5ddc-4b17-8c98-5a651821c77e" alt="" width="375"><figcaption><p>Text properties imported to Unity as TextMeshPro Text component</p></figcaption></figure> <figure><img src="https://1621352894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbxGkHH9nbw4PqGFuLmzb%2Fuploads%2FauT9typwHC3707yuPPyl%2FEkran%20Resmi%202024-05-20%2009.56.13.png?alt=media&amp;token=2e323429-7981-49a2-8c9a-1782df4ee82f" alt="" width="375"><figcaption><p>Localized text in Unity</p></figcaption></figure></div>
