# 曲线

效果根据“状态 **曲线”**，你可以在检视器中分配它们。

一如既往， **曲线** 是一个可脚本化对象，点击它们会在检视器中显示其预览。

### 内置曲线

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="image">封面图像</th></tr></thead><tbody><tr><td><strong>正弦</strong></td><td>遵循正弦曲线（并在出现时逐渐缓入）</td><td></td></tr><tr><td><strong>线性</strong></td><td>线性地从0到1变化</td><td></td></tr><tr><td><strong>保持</strong></td><td>始终保持在1</td><td></td></tr><tr><td><strong>方波</strong></td><td>要么是1要么是-1</td><td></td></tr><tr><td><strong>步进</strong></td><td>以四个不同的步骤从0变到1</td><td></td></tr><tr><td><strong>弹跳</strong></td><td>从0弹跳到1</td><td></td></tr></tbody></table>

### 从检视器创建自定义曲线

要从检视器创建自定义曲线，请转到 Project->Create->Text Animator for Unity 然后选择“**自定义**".

你会在检视器中看到两个曲线，它们都可以在面板底部编辑。

* **Curve01** 从0到1并决定出现和消失的行为
* **CurveRange** 从-1到1（但在起点结束以形成平滑/无缝循环）并影响持久性效果

<figure><img src="/files/5de434be018fc0d1a46b9e1ad60622db2d31c2d8" alt=""><figcaption></figcaption></figure>

***

{% hint style="info" %}
通过以下方式设置曲线的一种方法 [修饰符](/text-animator-unity/3.x-zh/xiao-guo/ru-he-bian-ji-xiao-guo/xiu-shi-fu.md) （类似于 [播放](/text-animator-unity/3.x-zh/xiao-guo/ru-he-bian-ji-xiao-guo/bo-fang.md)）将在未来版本中推出！
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.febucci.com/text-animator-unity/3.x-zh/xiao-guo/ru-he-bian-ji-xiao-guo/qu-xian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
