摘要: 从任意文件目录下读取文件并在unity中显示: 1)读取目标文件 byte[] imageByte = File.ReadAllBytes(imagePath); 2)转换成纹理 texture.LoadImage(imageByte); 3)转换成精灵 Sprite sprite = Sprite 阅读全文
posted @ 2018-01-10 14:51 81192 阅读(8063) 评论(0) 推荐(0) 编辑
摘要: 不论unity是否运行,到处其中的模型方法: 1.如下图建立相关文件目录,并建立如下脚本 2.脚本代码 3.点击想要导出的模型,然后按file-export-Wavefront obj菜单选择导出即可 阅读全文
posted @ 2018-01-10 14:43 81192 阅读(4720) 评论(1) 推荐(1) 编辑
摘要: [SerializeField] private Image m_ScreenImage; //序列帧播放的image [SerializeField] private int m_FrameRate = 30; // 一秒播放的帧数 [SerializeField] private str... 阅读全文
posted @ 2018-01-10 14:32 81192 阅读(1217) 评论(0) 推荐(0) 编辑