悉野小楼

导航

2023年4月21日

Unity Resources.Load

摘要: 图片路径必须是Assets\Resources目录下面的, 并且不能带扩展名 //E:\Assets\Resources\img\abc.jpg string filePath = "img/abc"; var texture = Resources.Load<Texture2D>(filePath 阅读全文

posted @ 2023-04-21 17:47 悉野 阅读(18) 评论(0) 推荐(0) 编辑