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

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

471. 一个场景,两个线形碰撞体,出错 [ 72%]

...法    override protected function getDef():* {             if (!_shape) {                 _shape = new window.box2d.b2ChainShape();                 _setShape(false);             }             this.label = (this.label || "ChainCol...

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

472. IphoneX适配 [ 72%]

...与内容相关的链接 提交 2 个回复 班长 赞同来自: 辉先生 if (Browser.onIPhone && Math.abs(Browser.pixelRatio - 3) < 0.01) { onIPhoneX = (Browser.clientWidth == 375 && Browser.clientHeight == 812) || (Browser.clientWidth == 812 && Browser.clientHeight == 3...

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

473. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 72%]

...gt;'); } div.pos(30,5); div.innerHTML = txt; div.width = div.contextWidth; if(div.contextWidth > 200) div.contextWidth = 200; console.log(div.contextWidth); paopao.y = gRoomView.chatBox.height; paopao.imgSayBg.height = div.contextHeight + 26; paopao.imgSayBg.width = div.contextWidth + 60; paopao....

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

474. webstorm能编译ts代码到bundle.js 里面吗 [ 72%]

...简单的教程 先自己全局 安装  npm  然后安装 gulp、tbrowserify、vinyl-source-stream、ttsify 我的npm路径是 :"/usr/local/lib/node_modules/"然后 我们 在 .laya 文件夹下 找到 compile.js 然我们自己在这个目录下 新建一个 文件 名字是 ”gulpfile.js“ ...

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

475. 附加脚本的使用问题 [ 72%]

...) 改为 "owner" in tChild,set中的log被输出。 引擎1.7.5beta. // if (tChild.hasOwnProperty("owner")) { //     tChild["owner"] = comp; // }  if ("owner" in tChild) {     tChild["owner"] = comp; }  附件 : --> myLaya.rar 2017-06-01 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

476. 安卓和iPhone的触控差异 [ 72%]

...function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } private function onMouseMove(e:Event= null):void { var touches:Array = e.touches; if (touches) { xx = moveX - touches[0].stageX; hero....

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

477. panel的实际高度如何获取 [ 72%]

...el:Laya.Component) { console.log("GetViewHeight:"+panel.height); if(panel.height>0) { return panel.height } if(!panel.parent) { return WINSIZE.height } let parent=panel.parent as Laya.Component; return GetViewHeight(parent)-panel.top-panel.bottom; }

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

478. 骨骼动画-多纹理 [ 72%]

...this.play(); } play() { mCurrIndex++; let aniNum = mArmature.getAnimNum(); if (mCurrIndex >= aniNum) { mCurrIndex = 0; } mArmature.play(mCurrIndex, false); } } new Skeleton_MultiTexture();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import ...

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

479. 协议打包byte出错 [ 72%]

...   required bytes sex = 3; //角色性别 // }             if(Msg== null){                 Msg = ProtoManager.Instance.getProtoObj(protoFileName).lookup(msgName);             }             trace("protoFileName=="+protoFileName+" msgName=="+msgNa...

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

480. SoundManager.setMusicVolume(0)苹果浏览器不静音! [ 72%]

...邀请: 与内容相关的链接 提交 2 个回复 anghuo 赞同来自: if (cb.name == "musicset")             {                 cb.selected ? SoundManager.setMusicVolume(0) : SoundManager.setMusicVolume(0.5);             }             else if (cb.name == "sou...

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