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

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

371. laya.device.media.Video [ 75%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node  duration : Number[read-only] 获取视频长度(秒)。ready事件触发后可用。 Video  ended : Boolean[read-only] 返回音频/视频的播...

来源: laya_api 发布时间: 20170929

372. parameter 2 is not of type 'WebGLTexture' [ 75%]

...raphics.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img);     如图和代码(一个按钮点击后draw图然后加入stage) 只要添加至stage后,随后就会出现这个错误,跟踪查到传入的不是WebGLTexture而是一个canvas,应该是渲...

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

373. 官方的API为什么找不到pivot和pos? [ 75%]

...phicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani);   上面pivot和pos都是什么意思?官方API为什么找到说明? 2018-05-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

374. Maximum call stack size exceeded [ 75%]

...   Laya["DebugPanel"] && Laya["DebugPanel"].enable();     Laya.stage.scaleMode = GameConfig.scaleMode;     Laya.stage.screenMode = GameConfig.screenMode;     Laya.stage.alignV = GameConfig.alignV;     Laya.stage.alignH = GameConfig.alignH;     //兼容微信不支持加载scene后...

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

375. Spine骨骼动画点击区域偏移 获取不到width height [ 75%]

...e.autoSize = true;         sprite.play("idle", true);         Laya.stage.addChild(sprite);         console.log(sprite.getBounds());           console.log(sprite.width,sprite.height));      } 附件 : --> ZG.zip 2016-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

376. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 75%]

...xt();  info.fontSize = 50;  info.color = "#FFFFFF";  info.size(Laya.stage.widthLaya.stage.height);  Laya.stage.addChild(info);     Gyroscope.instance.on(Event.CHANGE, this, onDeviceorientation); }   private function onDeviceorientation(absolute:Boolean, rotationInfo:RotationInfo)...

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

377. 2.3微信截图分享问题 [ 75%]

...stHeight: 100, fileType: 'jpg', quality: 1.0 });   var canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas();   这是第二种写法。翻了几次论坛据说已经用不了。而且drawToCanvas返回的HtmlCanvas 也没getCanvas()方法。 那么现在...

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

378. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 75%]

...小,这样才不会拉伸变形 this.spRole.texture.sourceWidth = Laya.stage.width; this.spRole.texture.sourceHeight = Laya.stage.height; //添加2D精灵, this.owner.addChild(this.spRole); this.spRole.pos(0, 0); this.spRole.size(Laya.stage.width, Laya.stage.height); }); 2025-01-09 0 0 分享 ...

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

379. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 75%]

...wPortPivotByScale(0,0); //将原地图放大3倍 this.tMap.scale = 3; Laya.stage.on(Laya.Event.RESIZE,this,this.resize); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.resize(); } /** * 移动地图视口 */ private mouseMove(...

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

380. 圆环不跟随 sprite 一起缩放? [ 75%]

..., 5); this.firstSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.MouseWheel);  this._rootSp.hitArea = new Laya.Rectangle(0, 0, 10000, 10000) this._rootSp.addChild(this.firstSp); Laya.stage.addChild(this._rootSp); }  private MouseWheel(e: Laya.E...

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