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

大约有 904 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)

871. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 50%]

...nterval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...

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

872. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 50%]

...0000"); this._body.width = this._objectInfo.templateInfo.width; this._body.height = this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUSE_OVER, this, this.__onMouseOverHole); this.on(Event.MOUSE_OUT, this, this.__onMouseOutHole); } this.pos(this._objectInfo.templateInf...

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

873. spine 播放错乱 [ 50%]

...ild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); //this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); } private onError() { console.error("load spine error"); } private play(): void { console.log("1111111111...

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

874. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 50%]

... Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https...

来源: Laya2.0_文档 发布时间: 20210714

875. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 50%]

...调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取消。</p>          * @param url       图片地址。          * @param complete  (可选)加载完成回调。          * @return  返回精灵对象本身。   ...

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

876. Laya List给子元素添加事件后,滚动事件被劫持了 [ 50%]

... 0; i <20; ++i) { let list = new Laya.Sprite(); list.width = 600 ; list.height = 155; list.loadImage('xxx.png'); //此处无论是这样给 list.on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 txArray.push(list);} storeTxList.arr...

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

877. 一篇了解LayaAir的屏幕适配,及有效抗锯齿(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 50%]

...rowser.clientWidth`获取逻辑分辨率的宽,通过`Laya.Browser.clientHeight`获取逻辑分辨率的高。 在手机等移动设备的竖屏状态下,窄面为宽,长面为高。如果发生了屏幕翻转的横屏状态,则长的一面为宽,窄面为高。 在PC浏览器中,则是...

来源: Laya2.0_文档 发布时间: 20210715

878. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 50%]

...h)*(stageWidth/4)             var bl:Number=texture.width/texture.height             ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl);             apesCtn.addChild(ape);         } 2016-10-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

879. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 50%]

...ya.stage.addChild(btn); //设置Button相关的属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } } ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ld...

来源: Laya2.0_文档 发布时间: 20210715

880. 微信小游戏加载资源问题 [ 49%]

....width / Laya.Render.canvas.width / Laya.Browser.pixelRatio), Laya.Browser.height / Laya.Render.canvas.height / Laya.Browser.pixelRatio); } static wxinputFocus(e) { var _inputTarget = Laya.Input['inputElement'].target; if (_inputTarget && !_inputTarget.editable) { return; } MiniAdpter.window...

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