---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://yandex.com/dev/games/doc/en/sdk/construct-3/adaptive-text.md
  - https://yandex.com/dev/games/doc/hi/sdk/construct-3/adaptive-text.md
  - https://yandex.com/dev/games/doc/ko/sdk/construct-3/adaptive-text.md
  - https://yandex.com/dev/games/doc/ru/sdk/construct-3/adaptive-text.md
  - https://yandex.com/dev/games/doc/tr/sdk/construct-3/adaptive-text.md
  - https://yandex.com/dev/games/doc/vi/sdk/construct-3/adaptive-text.md
  - https://yandex.com/dev/games/doc/zh/sdk/construct-3/adaptive-text.md
  - href: https://yandex.com/dev/games/doc/zh/sdk/construct-3/adaptive-text.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.com/dev/games/doc/zh/llms.txt?revision=r21861215
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/zh/llms.txt?revision=r21861215

# 自适应文本

<!-- source: zh/_includes/script-common.md -->
<!-- source: zh/_includes/script/index-js.md -->

<!-- endsource: zh/_includes/script/index-js.md -->

<!-- source: zh/_includes/script/requirements-js.md -->

<!-- endsource: zh/_includes/script/requirements-js.md -->

<!-- source: zh/_includes/script/image-modal-js.md -->

<!-- endsource: zh/_includes/script/image-modal-js.md -->
<!-- endsource: zh/_includes/script-common.md -->

AdaptiveText —— 这是一个附加插件，用于显示文本，其内容能够自适应给定的边界。

该插件可适配无法在屏幕上完整显示的过长玩家昵称，以及本地化后变长的文本。

![视频：在灰色背景上，用户缩放文本输入框。 框内文本随之相应变化，且不会超出边界。](../../_images/construct-3/adaptive-text/example-1.gif) ![视频：在灰色背景上有一个紫色矩形，用户在其中输入文本"VeryLongUsername"。 随着文本的输入，字号也会相应减小——文本越长，字号越小。 同时，文本始终保持在紫色矩形内部。](../../_images/construct-3/adaptive-text/example-2.gif)

您可以在 [GitHub](https://github.com/yandex-games-plugins/construct3/releases){.external} 下载最新版本的 AdaptiveText 插件。

---


<!-- source: zh/_includes/sdk/button-git.md -->
<a href="https://github.com/yandex-games-plugins/construct3">
  <span class="button">存储库</span>
</a>
<!-- endsource: zh/_includes/sdk/button-git.md -->
