-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathZMTextProMain.cs
More file actions
67 lines (60 loc) · 1.78 KB
/
ZMTextProMain.cs
File metadata and controls
67 lines (60 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace ZM.UGUIPro {
public class ZMTextProMain : MonoBehaviour
{
public Sprite sprite;
public ImagePro mImagePro;
public Dropdown dropdown;
public TextPro mTextPro;
async void Start()
{
await LocalizationManager.Instance.InitLanguageConfig();
}
// Update is called once per frame
//void Update()
//{
// if (Input.GetKeyDown(KeyCode.Q))
// {
// LocalizationManager.Instance.SwitchLanguage(LanguageType.Chinese);
// }
// if (Input.GetKeyDown(KeyCode.W))
// {
// LocalizationManager.Instance.SwitchLanguage(LanguageType.English);
// }
// if (Input.GetKeyDown(KeyCode.E))
// {
// LocalizationManager.Instance.SwitchLanguage(LanguageType.Bahasa);
// }
// if (Input.GetKeyDown(KeyCode.A))
// {
// mImagePro.sprite = sprite;
// }
// if (Input.GetKeyDown(KeyCode.S))
// {
// mTextPro.SetTextAlpha(0);
// }
// if (Input.GetKeyDown(KeyCode.D))
// {
// mTextPro.SetOutLineColor(Color.green);
// }
//}
}
//-----TextPro 功能介绍--------
// 1.高性能描边OutLine
// 2.字符间距调整
// 3.字符4个顶点颜色调整
// 4.字符颜色渐变
// 5.字符Shadow
// 6.本地多语言
//-----TextMeshPro 功能介绍--------
// 1.本地多语言
//-----ImagePro 功能介绍--------
// 1.图片多语言支持 (Excel配置读取与转换)
// 2.高性能Mask遮罩、裁剪
//-----ButtonPro 功能介绍--------
// 1.双击事件支持
// 2.长按事件支持
}