摘要: 界面需要做国际化的时候,一般不会在Text组件上使用中文,而是使用id或者key来代替,这个代码用于检测直接写了中文的Text #if UNITY_EDITOR using System.Text; using System.Text.RegularExpressions; using UnityE 阅读全文
posted @ 2022-11-08 23:07 yanghui01 阅读(53) 评论(0) 推荐(0) 编辑
摘要: RenderTexture或Texture2D -> RenderTexture public static RenderTexture TextureRenderToRT(Texture srcTex) { var srcTempRT = RenderTexture.GetTemporary(sr 阅读全文
posted @ 2022-11-08 00:36 yanghui01 阅读(433) 评论(0) 推荐(0) 编辑
摘要: # 这个图框了3张小图,淡蓝色进度条,钻石图标,道具背景框,其中道具背景框还设置了border。 提取出的图片 #if UNITY_EDITOR using UnityEngine; using UnityEditor; using System.IO; public static class Sp 阅读全文
posted @ 2022-11-08 00:29 yanghui01 阅读(127) 评论(0) 推荐(0) 编辑