大约有 827 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)
Laya_社区(668) Laya2.0_文档(61) Laya_示例(34) Laya3.0_文档(30) Laya2.0_示例(30) Laya3.0_api(3) Laya2.0_api(1)
...s = event.pairs; // change object colours to show those ending a collision for (var i = 0; i < pairs.length; i++) { var pair = pairs[i]; pair.bodyA.render.fillStyle = '#2A2CB2'; pair.bodyB.render.fillStyle = '#2A2CB2'; pair.bodyB.render.sprite.texture = './comp/block.png'; } } 2017-10-24 添加...
来源: Laya_社区 发布时间: 20171024
...60; this.addChild(nan); } private function delRen():void { if(arr.length){ for (var i:uint = 0; i < arr.length; i++ ){ if (arr[i].y > 800){ Pool.recover("nan", Image); } }arr[i].visible = false ; }; } 2017-12-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20171226
...是什么原因? 黑屏报这个错,是什么原因? [.Offscreen-For-WebGL-080E3858]GL ERROR :GL_INVALID_OPERATION : glDrawElements: Source and destination textures of the draw are the same. VM72 2017-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20170908
... 提交 1 个回复 186*****645 赞同来自: 好像是vscode的debugger for chrome插件的问题,可以回滚到4.12.8版本试试 2020-07-12 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 哦哦哦(´-ω-`) 相关问题 2.0一不小...
来源: Laya_社区 发布时间: 20200711
...。以下代码里面写的方法 可以修改大小 但是尺寸不对。 for (let i = 0; i < Laya.RigidBody['objs'].length; i++) { const element = Laya.RigidBody['objs'][i]; if(element) if(element.owner){ if(element.owner.getComponent(Laya.CircleCollider)){return} if(element.owner.getComponent(...
来源: Laya_社区 发布时间: 20200807
... var gets:Object = {}; for (var i:String in u) { var j:String = u[i].split("="); gets[j[0]] = j[1]; } ...
来源: Laya_社区 发布时间: 20170630
...sible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch", "name": "Launch Chrome", "url": "http://localhost:8080", "webRoot": ...
来源: Laya_社区 发布时间: 20200114
laya里面子节点设置zOrder值时,放在函数中调用 for(var i=0;i<10;i++)(){ game.box.getChildAt(i).zOrder=100-i; }; last_one() function last_one(){ var n=game.box.numChildren; game.box.removeChildAt(n-1); }; //默认zOrder最大的为第一个; 2018-03-05 1 条...
来源: Laya_社区 发布时间: 20180305
...1.首先定义一个字体样式类和接口。 字体样式接口。 ITextFormat.ts/** * @User: liuliqianxiao * @Date: 2017/12/25 * @Time: 下午3:07 * @Desc: 这家伙很懒,什么都没留下…… **/ interface ITextFormat { /** * 背景色 */ bgColor?: string; /** * 是否加粗 */ bold?: num...
来源: Laya_社区 发布时间: 20171226
...bagVo.group == GroupType.FollowerEquip || bagVo.group == GroupType.Equip){ for(var i:int=0;i<len;i++){ vo=bagVo.attr[i]; if(vo.attValue==0) continue; attrStr+="<font size='99999' color='#b031d5'>"+AttrNameCode.toName(vo.attType)+"</font>&nbsp;"+vo.attValue+"<br>"; } describe...
来源: Laya_社区 发布时间: 20171030