大约有 511 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0042 秒)
Laya_社区(371) Laya2.0_文档(52) Laya_示例(34) Laya2.0_示例(30) Laya3.0_文档(22) Laya3.0_api(1) Laya2.0_api(1)
...t] : text; if (!args || args.length <= 0) { this._text = text; } else { for (var i:int = 0, n:int = args.length; i < n; i++) { text = text.replace("{" + i + "}", args[i]); } this._text = text; } } 3、HTTPRequest中错误输出:前面的status和statusText都是空的 根本打印不出任...
来源: Laya_社区 发布时间: 20180820
...• 2018-02-10 13:31 private function GetUser():void{ var data:Array = []; for(var m:number =0;m<1;m++){ data.push({m_label:{text:"one"}}); data.push({m_label:{text:"two"}}); data.push({m_label:{text:"three"}}); data.push({m_label:{text:"four"}}); data.push...
来源: Laya_社区 发布时间: 20180210
...失败 WebGL: INVALID_OPERATION: useProgram: program not valid [.Offscreen-For-WebGL-00615668]GL ERROR :GL_INVALID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 0 很多错误 2017-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20171205
...到Camera的渲染事件中,目前laya支持的Camera事件如下: BeforeForwardOpaque = 0,//在渲染非透明物体之前BeforeSkyBox = 2,//在渲染天空盒之前BeforeTransparent = 4,//在渲染透明物体之BeforeImageEffect = 6,//在后期处理之前AfterEveryThing = 8,//所有渲染之...
来源: Laya3.0_文档 发布时间: 20240910
碰撞检测,intersects方法造成sprite消失 //碰撞检测 for(var i:number=0;i<this.roleBox.numChildren;i++){ let role:Laya.Animation=this.roleBox.getChildAt(i) as Laya.Animation // 只要去掉下面这行代码就不会消失 let isIntersect:boolean=this.home.player.getBounds().intersec...
来源: Laya_社区 发布时间: 20171111
...建的模拟数据,模拟树状列表数据,拼接列表的数据源 for (let i: number = 0; i < 5; i++) { //拼接目录数据结构(item标签这里可以自己定义标签名,用什么开头就用什么结束,但是title这里,一定要对应列表渲染单元的label文本节点name...
来源: Laya3.0_文档 发布时间: 20240910
... TypeError: Cannot read property 'length' of undefined for (var i = 0; i < text.length; i++) { ^^ TypeError: Cannot read property 'length' of undefined 2019-08-30 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20190830
...请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: for循环,后面跟着的是大括号 2017-11-13 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 w317151752 相关问题 Layabox 2.0 bate5 运行编译之后 bund...
来源: Laya_社区 发布时间: 20171113
...item2,item3,item4,item5"); 这个labels的值只能手动设置吗?我在for循环里面遍历发现labels最终显示的只有最后一个,本来应该显示10条的,因为数组长度为10 附件 : --> 2017-03-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20170324
...},function(value){ this._dataSource=value; for (var prop in this._dataSource){ if (this.hasOwnProperty(prop)&& !((typeof (this[prop])=='function'))){ this[prop]=this._dataSource[prop]; ...
来源: Laya_社区 发布时间: 20190803