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

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

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

...   _setShape(false);             }             this.label = (this.label || "ChainCollider");             return super.getDef();         }   改成这样既可 2018-11-19 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 下个版本修复,   ...

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

132. 使用graphsics.drawTexture画出来的图片与使用button创建同样宽高图形竟然不重合?? [ 74%]

...形竟然不重合?? 我使用一个Button创建的按钮,和使用 this.sprite_show = new Laya.Sprite(); this.sprite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画出来的两个对象,sprite_show的图形竟然被缩小了一点点。。。...

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

133. LayaBox用Matter.js时无法清理显示对象 [ 74%]

LayaBox用Matter.js时无法清理显示对象 使用this.Matter.World.remove(this.engine.world,BodyA);时可以同时清除刚体和显示对面 但是使用this.Matter.World.clear(this.engine.world);清理整个场景时,只有刚体被清除了 显示对象还在 2018-10-25 添加评论 免费...

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

134. 求助高手请进,关于场景导入的问题~ [ 74%]

...载出来了Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{     var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls");     Laya.stage.addChild(scene); }   我现在的问题是,我创建一个继...

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

135. [LayaNative2]pad外设键盘无法捕获到KEY_DOWN,KEY_UP,KEY_PRESS事件 [ 74%]

...决?   以下事件无法触发: Laya.stage.on(Laya.Event.KEY_PRESS, this, this.handleKeypress); Laya.stage.on(Laya.Event.KEY_DOWN, this, this.handleKeydown); Laya.stage.on(Laya.Event.KEY_UP, this, this.handleKeyup);   版本:2.13.3 附件 : --> 事件代码.docx 2024-02-28 添加评论 免...

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

136. 最新版本 1.7.5 beta fontClip [ 74%]

...       if (_bitmap && _sources) {                 this.graphics.clear();                 var splitArr:Array = value.toString().split('');                 for (var i:int = 0; i < splitArr.length; i++) {                     var te:Text...

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

137. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 74%]

...,报错如图三),代码如下: public drawScreenshot(): void { if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(1280,720); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser....

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

138. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 73%]

...LLFILTER) {         super(collisionGroup, canCollideWith);         this._enableProcessCollisions = false;     }     _addToSimulation() {         this._simulation._addPhysicsCollider(this, this._collisionGroup, this._canCollideWith);     }     _removeFromSimulation() {        ...

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

139. 发布微信后无法触发mouse_up事件 [ 73%]

...加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mouseHandler(e:laya.events.Event):void { var touches: Array<an...

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

140. 连续读取多个本地json文件 [ 73%]

...("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON); } //读取商店等级配置表 shopJsonLoaded( ) { let json = L...

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