Unity3D 处理Label的颜色代码
摘要:
UILabel m_name = transform.Find("Name").GetComponent();m_name.text = GetNameColor(name,1);string GetNameColor(string name , int quality){ string str; switch(quality) { case 1: str = "[ffffff]" + name + [-]; break; case 2: str = "[00ff00]" + name + [-]; break; case 3: st 阅读全文