当前位置:网站首页>[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
边栏推荐
- README
- Paper reading (54):deepfool: a simple and accurate method to four deep neural networks
- . Net cloud native architect training camp (responsibility chain mode) -- learning notes
- Landing of global organizational structure control
- 客服系统搭建教程_宝塔面板下安装使用方式_可对接公众号_支持APP/h5多租户运营...
- The principle of MySQL index algorithm and the use of common indexes
- Vulnerability in McAfee epolicy orchestrator
- org. apache. ibatis. binding. BindingException: Invalid bound statement (not found):...
- [win10 vs2019 opencv4.6 configuration reference]
- Self taught programming introduction, what language to learn first?
猜你喜欢

论文阅读 (47):DTFD-MIL: Double-Tier Feature Distillation Multiple Instance Learning for Histopathology..

QML类型:Loader
![[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]

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

客服系统搭建教程_宝塔面板下安装使用方式_可对接公众号_支持APP/h5多租户运营...

esp8266-01s 不能连接华为路由器解决方法

Counter attack and defense (1): counter sample generation in image domain

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):...
![[tool C] - lattice simulation test 2](/img/a2/0f9641332c9c13493ee8b3e568a294.png)
[tool C] - lattice simulation test 2
随机推荐
论文阅读 (48):A Library of Optimization Algorithms for Organizational Design
[esp8266-01s] get weather, city, Beijing time
13. IP address and subnet partitioning (VLSM)
Goframe framework: basic auth Middleware
实现领域驱动设计 - 使用ABP框架 - 存储库
JSON - learning notes (message converter, etc.)
暂停更新公告—行走的皮卡丘
Cryptography involved in IOT device end
Thesis reading (53):universal advantageous perturbations
Listen attentively and give back sincerely! Pay tribute to the best product people!
Detailed explanation of ssl/tls principle and packet capturing
Analytic analog-to-digital (a/d) converter
异步or线程池
The draganddrop framework, a new member of jetpack, greatly simplifies the development of drag and drop gestures!
How to design a seckill system - geek course notes
微信小程序startLocationUpdateBackground()简单实现骑手配送位置
6 steps to teach you financial data mining preprocessing
信用卡产品开发周期从23周缩短至9周,银行运维组织如何转向敏捷?
Method of copying web page content and automatically adding copyright information (compatible with ie, Firefox and chrome)
Alien world, real presentation, how does the alien version of Pokemon go achieve?