大约有 791 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
Laya_社区(418) Laya_示例(77) Laya3.0_api(64) Laya2.0_示例(64) Laya2.0_api(58) laya_api(53) Laya2.0_文档(42) Laya3.0_文档(15)
...i = new Laya.Animation(); roleAni.loadImages(); roleAni.play(); Laya.stage.addChild(roleAni); 这样就会报路劲错误 var urls = [ 'img/food/f1.png', 'img/food/f2.png', 'img/food/f3.png', 'img/food/f4.png', 'img/food/f5.png', 'img/food/f6.png', 'img/food/f7.png', 'img/food/f8.png', ...
来源: Laya_社区 发布时间: 20170718
...添加下面的方法, 一样会导致setInterval明显延迟执行; Laya.stage.on('click', null, function (e) { console.log.log(`click`); }); 即使我将所有的事件绑定全部注释掉频繁的点击页面也会卡住!!!!! 我在事件的处理函数中设置stopPropagation没有任何作用;...
来源: Laya_社区 发布时间: 20170323
... 请问layaair2.0-js 怎么用程序在list中添加多元素的item 修改stage的scale后,会发生异常情况 请问如何让textinput组件输入密码的时候显示*号? unity到导出场景加载时抛异常,不知所措 开启CastShadow以后,模型会莫名其妙消失,物体渲...
来源: Laya_社区 发布时间: 20210412
... tiledMap.createMap("../res/dt.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); 调用后报错TypeError: Cannot read property 'split' of undefined at TiledMap.__proto.mergePath (file:///C:/Users/Administrator/Documents/myLaya/Hello/bin/libs/laya.tiledmap.j...
来源: Laya_社区 发布时间: 20181026
...Particle2D(setting); sp.pos(200, 200); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.rotation = 80; }附件中为旋转80、45、0角度时的现象 问题补充: Laya.init(720, 1280);这样就正常了。 Laya.init(720, 1280, laya.webgl.WebGL);这样就出现这个问题,应...
来源: Laya_社区 发布时间: 20180505
...source.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.ini...
来源: Laya_社区 发布时间: 20200924
...true; (2)this.camera.clearColor = new Vector4(0, 0, 0, 0); (3)Laya.stage.bgColor = null; 第一句,是让Canvas的WebGL上下文支持透明。 第二句,是在draw渲染时清除的颜色和透明。 第三句,是把Canvas的style背景色清除。 --------------------- 作者:sjt...
来源: Laya_社区 发布时间: 20181030
...展示界面 Laya.init(scronw, scronh) //设置舞台背景色 Laya.stage.bgColor = '#999999'; //设置适配模式 Laya.stage.scaleMode = "exactfit"; // 无加载失败重试 Laya.loader.retryNum = 0; //加载的数据信息 https://layaair.ldc.layabox.co ... oader var...
来源: Laya_社区 发布时间: 20171024
...{ trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); } 以上是子域项目中加载图集和取资源的代码。代码是参照 https://ask.layabox.com/question/15086 这个帖子的。 图集加载是ok的,但是这样new Image("rank/country.png");...
来源: Laya_社区 发布时间: 20180830
...Fun('prefab_' + name, obj.create,obj); Laya.stage.addChild(prefab); prefab.pos(100,100); }),null,Laya.Loader.PREFAB); 如上,obj.create打包后在真机找不到此函数。 附件 : --> 2D.zip 2020-04-09 添加评论 免费...
来源: Laya_社区 发布时间: 20200409