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

大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0075 秒)

1281. ???????? 为啥加一个 Text,drawcall 暴增? [ 84%]

...i_imgs/icon_00313.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.s...

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

1282. 骨骼动画换装显示不刷新问题 [ 84%]

...er_png");  var mc_data = ResLoad.getInstance().getAtlasUrl("tiger_sk");  this.mFactory = new Laya.Templet(); this.mFactory.parseData(Laya.loader.getRes(mc_png),Laya.loader.getRes(mc_data));  this.skeleton = this.mFactory.buildArmature(1); 使用下面代码更换骨骼插槽纹理,无法更新...

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

1283. Panel初始化BUG [ 84%]

...Size(width: number, height: number): void {         var content: Box = this._content;         var rectX = 0;         var rectY = 0;         if (this.vScrollBar) rectY = this.vScrollBar.value;         if (this.hScrollBar) rectX = this.hScrollBar.value;         content.width = ...

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

1284. ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found [ 84%]

ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found 环境win10 layaboxide 2.6.0 beta 已经全局安装typescript,命令行 tsc -v,输出Version 3.8.3 nodejs 12.16.1 编译报错: semantic error TS2354: [31mThis syntax requires an imported he...

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

1285. 在layabox里protobuf只能用回调的方式处理吗? [ 84%]

...,白鹭里加载我使用的是: import ProtoBuf = dcodeIO.ProtoBuf; this._protoBuilderMap ={user:ProtoBuf.loadProto(RES.getRes('user_proto'))}; 然后打包数据这样使用就可以了: let head: string = name.substring(0, name.indexOf('.')); let Message = this._protoBuilderMap[head].build(...

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

1286. Box绑定事件失效 [ 84%]

...0 1 分享 微博 QZONE 微信 S123456123456 赞同来自: 代码部分: this.room_top1 = new Laya.Box(); console.log(this.room_top1) this.room_top1.on("click",this,function(){console.log("11111111111")});   2017-11-16 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你输出...

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

1287. 请问HTMLDivElement怎么加垂直滚动条 [ 84%]

请问HTMLDivElement怎么加垂直滚动条 this.chat_lab = new Laya.HTMLDivElement(); this.chat_lab.pos(2, 2); this.chat_lab.size(495,329); this.rect_sprite.addChild(this.chat_lab); .... //输入了一大堆聊天记录后,内容超过了329px,虽然限高height:329px;并加入了overflow-y:s...

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

1288. 求助!wss在native中无法连接 [ 84%]

...如下: wss://testconnector.46mp.com:8014  I/LayaBox: new JSWebSocket::this=abc23ac0 deletgate=abb1ba70  I/LayaBox: WebSocket::init m_host: testconnector.46mp.com, m_port: 8014, m_path: /  I/LayaBox: @@@@@ connect testconnector.46mp.com:8014 r W/LayaBox: JSWebSocketDelegate::onError( code=1 )th...

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

1289. label位置设置 [ 84%]

...-07-09 20:55 浏览: 868 关注: 2 人 redlilyforgert • 2017-07-12 15:13 this.txt_hint.x=this.logicmap.hint_show[i].hintcontentx;//x值不变化 this.txt_hint.y=this.logicmap.hint_show[i].hintcontenty;//y值能变化 Monica • 2017-07-12 20:33 @redlilyforgert:麻烦上传一个例子吧!谢谢

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

1290. 判断场景里是否存在模型? [ 84%]

...这样的。 我在脚本createmesh文件里,异步加载了2个模型 this.tmpmesh=[ Laya.Sprite3D.load(url+"/chaoshi/LayaScene_xue/xue.lh"), Laya.Sprite3D.load(url+"/naicha/LayaScene_xue/xue2.lh"), ];这2个模型在加载到场景里,我是用了随机数,比如第一次可能是this.tmpmes...

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