BatchModifyTexture.cs using UnityEngine; using System.Collections; using UnityEditor; using System.IO; public class BatchModifyTexture { [MenuItem("Assets/BatchModifyTexture")] static void Init() { //获取Project视图中的选中目录下的所有图片 Object[] objects = Se
官网没有详细样例,仅仅有看api,研究成果例如以下 var that = this; var url = "http://xxxxxx"; cc.loader.loadImg(url, null, function(err,img){ var logo = new cc.Sprite(img); that.addChild(logo); logo.x = size.width / 2; logo.y = size.height / 2; });