• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0043 秒)

1591. 判断玩家在地面还在空中 [ 53%]

... = this.rigidbody.colliderShape as Laya.BoxColliderShape         let y:number = this.transform.position.y-bc.sizeY/2 - 0.05         let vec3:Laya.Vector3 = new Laya.Vector3(this.transform.position.x,y,this.transform.position.z);         var ray = new Laya.Ray(vec3,new Laya.Vector3(0,0,1)...

来源: Laya_社区 发布时间: 20190905

1592. list控件内字体大小设置无效 [ 52%]

...temName") as Label; itemImg.skin=cell.dataSource.image_url; itemName.width=Number(itemName.text.length*20); itemName.height=20; itemName.fontSize =12; itemName.text=cell.dataSource.cat_name; }fontSize设置无效。  字体等其余的都是默认设置  没有修改 IDE1.7.5 2017-08-29 添加评...

来源: Laya_社区 发布时间: 20170829

1593. 能改变动画下getGraphicBounds 的属性吗 x y width height [ 52%]

...tiy模型导出增加自定义属性值 TextInput 的 type 属性设置为 number 的时候 maxChars 字数限制无效 问题状态 最新活动: 2017-06-29 18:44 浏览: 1066 关注: 2 人 cuixueying • 2017-06-29 22:00 动画的大小你用scale去改变! z298959 • 2017-06-30 09:08 有的特...

来源: Laya_社区 发布时间: 20170629

1594. 对象mask的区域改变问题! [ 52%]

...dth,this.img_bar.height,"#000000"); this.setValue(0); } private setValue(v:number):void{ this.__mask.scaleX = v; this.img_bar.mask = null;//第二次设置mask的时候必须给原对象的mask置空,否则无效 this.img_bar.mask = this.__mask; this.label_pro.text = v * 100 + "%"; }对象mask的局...

来源: Laya_社区 发布时间: 20170320

1595. Dialog的popupEffect是不是有bug [ 52%]

...    dialog.y = - dialog.height;                 var yy:number = (Laya.stage.height - dialog.height)/2;                 Laya.Tween.to(dialog,{y:yy},600,Laya.Ease.backOut);             },[],false);             this.gameHelpDialog = new view.G...

来源: Laya_社区 发布时间: 20170510

1596. 关于list里注册事件和移除事件 [ 52%]

...还是不用清除点击事件?private updateItem(cell: Laya.Box, index: number): void { let btn: Laya.Button = cell.getChildByName("btn") as Laya.Button; btn.on(Laya.Event.CLICK, this, this.on_test); } 附件 : --> list.png 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

来源: Laya_社区 发布时间: 20180810

1597. [LayaAir3]Camera的cullingMask如何实现的? [ 52%]

...有个BitMask封装 @property({type: BitMask(LogLevel)}) public logLevel: number = LogLevel.All;//日志等级 这样在CocosCreator Editor的Inpector上就可以多选了。

来源: Laya_社区 发布时间: 20251120

1598. dialog里面的内容怎么不能添加到舞台 [ 52%]

...X++) { var foodid = res.data[X]['n_food_id']; var foodtxt = res.data[X]['n_number']; fooddata[X] = { food: { skin: 'comp/food' + foodid + '.png' }, food_txt: {text: foodtxt} // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource ...

来源: Laya_社区 发布时间: 20181220

1599. laya ide2.0 如何用命令行导出ui [ 52%]

...ir2-cmd [command] [args]   Options:   -v, --version  output the version number   -h, --help     output usage information   Commands:   compile        compile project.   publish        publish project.   help [cmd]     display help for [cmd] 并没有相关命令 2019-04-07 添加...

来源: Laya_社区 发布时间: 20190407

1600. 网络和格式-Socket [ 52%]

...output.writeByte发送 var message: string = "demonstrate "; for (var i: number = 0; i "); // 使用output.writeByte发送 var message:String = "demonstrate "; for (var i:int = 0; i < message.length; ++i) { output.writeByte(message.charCodeAt(i)); } socket.flush(); } private function onSocketClose(e...

来源: Laya2.0_示例 发布时间: 20260106