Skip to content

2 文本框 txt

Tualin14 edited this page Aug 20, 2023 · 7 revisions

设置(带断点

  • 命令
t/txt `{学生名}` `{社团名}` `{对话内容}`
t/txt `日步美` `补课部` `咦...?老师,难道你不知道波浪猫吗?`

设置(不带断点

  • 命令
tc `{学生名}` `{社团名}` `{对话内容}`
tc `日步美` `补课部` `咦...?老师,难道你不知道波浪猫吗?`

带高亮

  • 命令
th {nameId} `{学生名}` `{社团名}` `{对话内容}`
th hihumi `日步美` `补课部` `咦...?老师,难道你不知道波浪猫吗?`
  • 可指定角色高亮,其它角色变暗以实现对话效果

隐藏

  • 命令 text hide
  • text hide

字体大小

  • 命令 text size {size}
  • size [small, medium, big]
  • text size big

打字机效果时间间隔

  • 命令 text interval {seconde}
  • text interval 0.02

切换字体

  • 命令 text font {size}
  • text font JiangChengYuanTi
  • 字体需要安装在系统中, 方法
    1. 将字体以管理员安装到电脑上
    2. 重启电脑

富文本

支持富文本操作,具体见: https://docs.unity.cn/cn/2019.3/Manual/StyledText.html