当前位置:网站首页>[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
边栏推荐
- 论文阅读 (53):Universal Adversarial Perturbations
- 论文阅读 (47):DTFD-MIL: Double-Tier Feature Distillation Multiple Instance Learning for Histopathology..
- Mobile SSH connection tool
- Add new members to the connector family! Scenario connector helps enterprises comprehensively improve the operational efficiency of business systems
- 微信小程序报错[ app.json 文件内容错误] app.json: app.json 未找到
- ACM players take you to play with the array!
- [tool C] - lattice simulation test 2
- Landing of global organizational structure control
- Ner's past, present and future Overview - Future
- 【Unity】插件TextAnimator 新手使用说明
猜你喜欢

论文阅读 (48):A Library of Optimization Algorithms for Organizational Design

How to solve the problem that the esp8266-01s cannot connect to Huawei routers

论文阅读 (52):Self-Training Multi-Sequence Learning with Transformer for Weakly Supervised Video Anomaly

【Wwise】Wwise嵌入Unity后打包出现没有声音问题
![[mae]masked autoencoders mask self encoder](/img/08/5ab2b0d5b81c723919046699bb6f6d.png)
[mae]masked autoencoders mask self encoder

Pause update Bulletin - walking Pikachu

信用卡产品开发周期从23周缩短至9周,银行运维组织如何转向敏捷?

Self training multi sequence learning with transformer for weakly supervised video animation
![[esp8266-01s] get weather, city, Beijing time](/img/8f/89e6f0d482f482ed462f1ebd53616d.png)
[esp8266-01s] get weather, city, Beijing time

Paper reading (48):a Library of optimization algorithms for organizational design
随机推荐
How to create a three elimination game
How to open an account through online stock? Is online account opening safe?
Customer service system building tutorial_ Installation and use mode under the pagoda panel_ Docking with official account_ Support app/h5 multi tenant operation
esp8266-01s 不能连接华为路由器解决方法
[WebSocket] 开发在线客服系统知识点-websocket返回状态码的含义
Goframe framework: fast implementation of service end flow limiting Middleware
实现领域驱动设计 - 使用ABP框架 - 存储库
Company offensive operation guide
Goframe framework: graceful closing process
Also using copy and paste to create test data, try the data assistant!
First use of kubernetes cronjob
Paper reading (49):big data security and privacy protection (Kopp)
What is the problem with TS File Error 404 when easynvr plays HLS protocol?
Paper reading (50):a novel matrix game with payoffs of maximal belt structure
MySQL - reasons for using repeatable read
Intelligent supply chain collaborative management solution for logistics industry
VNC Viewer方式的远程连接树莓派
Paper reading (48):a Library of optimization algorithms for organizational design
【故障公告】取代 memcached 的 redis 出现问题造成网站故障
异步or线程池