2019年2月27日

摘要: public void SaveTexture(string path, Texture2D texture, float scaleValue) { float tempX = texture.width; float tempY = texture.height; float x = tempX 阅读全文
posted @ 2019-02-27 22:00 年轮下的 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 方法一: Vector2 pos; RectTransformUtility.ScreenPointToLocalPointInRectangle(canvas.transform as RectTransform, Camera.main.WorldToScreenPoint(wordPos), 阅读全文
posted @ 2019-02-27 21:58 年轮下的 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 命名空间:UnityEditor 继承类:EditorWindiw (这个类可以实现弹出窗口)静态变量:自身类的对象 窗口按钮的显示:方法上一行[MenueItem(“菜单路径”)]即可,创建出来的按钮就是触发这个方法,例:[MenueItem(“leixuan/tool”)]public stat 阅读全文
posted @ 2019-02-27 21:58 年轮下的 阅读(151) 评论(0) 推荐(0) 编辑

导航