当前位置:网站首页>[unity] instructions for beginners of textanimator plug-in
[unity] instructions for beginners of textanimator plug-in
2022-06-23 18:09:00 【C # Li natuo # C】
Novice purchase and play TextAnimator I don't know how to start , I don't know where to start with the document ( Yes, I am ), Briefly introduce how to use , Not too strict instructions , If you have any questions, please correct .
1. Add the component
TMP Text File add components
Added TextAnimatorPlayer It will automatically add TextAnimator
2.
Add the appropriate tag to the rich text


3. Control its display and closing by code
/// <summary>
/// Show text
/// </summary>
/// <param name="_text">_text</param>
public static void ShowText(TMP_Text _text)
{
if (_text.GetComponent<TextAnimatorPlayer>() !=null)
{
TextAnimatorPlayer textAnimatorPlayer = _text.GetComponent<TextAnimatorPlayer>();
textAnimatorPlayer.StartShowingText(true);
}
else
{
Debug.LogError("TextAnimatorPlayer is NULL");
}
}
/// <summary>
/// The text disappears
/// </summary>
/// <param name="_text"></param>
public static void DisappearingText(TMP_Text _text)
{
if (_text.GetComponent<TextAnimatorPlayer>() != null)
{
TextAnimatorPlayer textAnimatorPlayer = _text.GetComponent<TextAnimatorPlayer>();
textAnimatorPlayer.StartDisappearingText();
}
else
{
Debug.LogError("TextAnimatorPlayer is NULL");
}
}
In this way, you can control its display and closing , The rest API The documents all contain , You can check it yourself
边栏推荐
- Ner's past, present and future Overview - Future
- Paper reading (50):a novel matrix game with payoffs of maximal belt structure
- An error is reported when latex uses \usepackage{hyperref}: paragraph ended before [email protected] @link was complete
- Troubleshooting and modification process of easycvr interface dislocation in small screen
- Call face recognition exception
- Tencent three sides: how to duplicate 4billion QQ numbers?
- Paper reading (56):muti features predction of protein translational modification sites (task)
- 论文阅读 (51):Integration of a Holonic Organizational Control Architecture and Multiobjective...
- Add new members to the connector family! Scenario connector helps enterprises comprehensively improve the operational efficiency of business systems
- Latex使用\usepackage{hyperref}报错:paragraph ended before [email protected]@link was complete
猜你喜欢

视频异常检测数据集 (ShanghaiTech)

论文阅读 (54):DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks

Reading papers (51):integration of a holonic organizational control architecture and multiobjective

论文阅读 (55):Dynamic Multi-Robot Task Allocation under Uncertainty and Temporal Constraints

Crmeb second open SMS function tutorial

论文阅读 (51):Integration of a Holonic Organizational Control Architecture and Multiobjective...
![[esp8266-01s] get weather, city, Beijing time](/img/8f/89e6f0d482f482ed462f1ebd53616d.png)
[esp8266-01s] get weather, city, Beijing time
![[win10 vs2019 opencv4.6 configuration reference]](/img/51/62fb26123561b65f127304ede834a2.png)
[win10 vs2019 opencv4.6 configuration reference]

org. apache. ibatis. binding. BindingException: Invalid bound statement (not found):...

iMeta | 南农沈其荣团队发布微生物网络分析和可视化R包ggClusterNet
随机推荐
JS custom error
Troubleshooting and modification process of easycvr interface dislocation in small screen
Kotlin practical skills you should know
【C工具】------点阵模拟测试2
Redis ubuntu18.04.6 intranet deployment
README
[tool C] - lattice simulation test 2
MySQL transaction submission process
Ner's past, present and future Overview - Future
客服系统搭建教程_宝塔面板下安装使用方式_可对接公众号_支持APP/h5多租户运营...
[esp8266-01s] get weather, city, Beijing time
手机开户一般哪个证券公司好?在线开户安全么?
console. Log() is an asynchronous operation???
The mail function is normal locally, and the ECS reports an error
Listen attentively and give back sincerely! Pay tribute to the best product people!
论文阅读 (54):DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks
2022年T电梯修理考试题库及模拟考试
[esp8266 - 01s] obtenir la météo, Ville, heure de Beijing
【剑指Offer】45. 把数组排成最小的数
全局组织结构控制之抢滩登陆