大约有 158 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
Laya_社区(117) Laya2.0_文档(16) Laya3.0_文档(13) Laya3.0_api(3) Laya2.0_示例(3) laya_api(2) Laya_示例(2) Laya2.0_api(2)
...法,AS/TS思路一样,请根据自己的需求进行修改即可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (va...
来源: Laya_社区 发布时间: 20170513
...ascript" src="zlib.min.js"></script> <script src='Main.max.js' loader='laya'></script> </body> </html> 然后我把MainActivity中的initEngine方法中的设置入口页面方法改成了mPlugin.game_plugin_set_option("gameUrl", "http://stand.alone.version/index_nat...
来源: Laya_社区 发布时间: 20180310
js环境下使用Loader加载图片在Sprite对象的.on函数无效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触...
来源: Laya_社区 发布时间: 20171024
...毕,此方法只执行一次 onAwake(): void { //支付宝小游戏 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...
来源: Laya3.0_文档 发布时间: 20251010
... 我加载几十张图片,图片在外网服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) ...
来源: Laya_社区 发布时间: 20180808
...资源 this.assets.push({ url: "lobby/zhujiemian_ditiao.png", type: Laya.Loader.IMAGE }); Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false)); 在加载的时候ios的微信小游戏是没有问题的,但是到...
来源: Laya_社区 发布时间: 20180824
...ya.core.js:711) at ResInfo.__proto.event (laya.core.js:483) at LoaderManager.__proto._endLoad (laya.core.js:13152) at Loader.onLoaded (laya.core.js:13128) at EventHandler.__proto.runWith (laya.core.js:711) at Loader.__proto.event (laya.core.js:483) 在粒子中加了...
来源: Laya_社区 发布时间: 20190520
...加载的时候都会重新加载图片 我用的语言是JS来写,用Laya.loader.load进行预加载,放数组url路径,在progress哪里做一个加载完成进度事件,其他参数默认原有的配置,甚至修改缓存为true ,强制加载为false,但是仍然没有效果 每次都...
来源: Laya_社区 发布时间: 20170217
...:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 Laya.loader.create 进度回调函数执行两次 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? Laya.Handler.create 回调 问题状态 最新活动: 2018-04-18 14:32 浏览:...
来源: Laya_社区 发布时间: 20180413
...s/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/L...
来源: Laya_社区 发布时间: 20180307