大约有 483 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)
... _setShape(false); } this.label = (this.label || "ChainCollider"); return super.getDef(); } 改成这样既可 2018-11-19 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 下个版本修复, ...
来源: Laya_社区 发布时间: 20181116
...形竟然不重合?? 我使用一个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
LayaBox用Matter.js时无法清理显示对象 使用this.Matter.World.remove(this.engine.world,BodyA);时可以同时清除刚体和显示对面 但是使用this.Matter.World.clear(this.engine.world);清理整个场景时,只有刚体被清除了 显示对象还在 2018-10-25 添加评论 免费...
来源: Laya_社区 发布时间: 20181025
...载出来了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
...决? 以下事件无法触发: 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
... 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
...,报错如图三),代码如下: 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
...LLFILTER) { super(collisionGroup, canCollideWith); this._enableProcessCollisions = false; } _addToSimulation() { this._simulation._addPhysicsCollider(this, this._collisionGroup, this._canCollideWith); } _removeFromSimulation() { ...
来源: Laya_社区 发布时间: 20200505
...加载完成 */ 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
...("读数据"); 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