大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...age.alignH = 'middle'; // 适配水平对齐方式 Laya.stage.screenMode = this.Stage.SCREEN_HORIZONTAL; // 始终以横屏展示 Laya.stage.scaleMode = "fixedwidth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.en...
来源: Laya_社区 发布时间: 20180522
...0 0 1 分享 微博 QZONE 微信 乐趣 赞同来自: Laya.timer.loop(1000,this,this.CardAnimation); //定时执行某个函数 this.CardAnimation是你要自己实现的动画 动画执行玩后清理掉这个定时器 Laya.timer.clear(this,this.CardAnimation); //清理定时器 这些API里...
来源: Laya_社区 发布时间: 20190520
...2.png',100,100,90,90); Laya.stage.addChild(img1); img1.on(Laya.Event.CLICK,this, function(name){ console.log(name);},['图1']); var img2 = new Laya.Sprite(); img2.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.png',200,300,90,90); Laya.stage.addChild(img2); img2.on(Laya.Event.CL...
来源: Laya_社区 发布时间: 20180621
...件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/LayaScene_AnimationEvent/Con...
来源: Laya2.0_文档 发布时间: 20210715
...全是不正确的 let vectory = new Laya.Vector3(-Math.cos(this.angle) * this.v,0,0); // this.rigidbody.applyForce(vectory); this.rigidbody.linearVelocity = vectory; console.log("施加的线速度:"); console.log...
来源: Laya_社区 发布时间: 20200330
...age dispose,内存也不见释放。代码如下: var kk1:HTMLCanvas = this.HistoryArray.pop()[0]; var img:Image = new Image(); img.src = kk1.toDataURL(); img.dispose(); 详见附件。这次不会那么强大了 2...
来源: Laya_社区 发布时间: 20170407
...rite3D.__proto.destroy (laya.d3.js:43737) 发现 if (this._cacheRootBone){ this._cacheRootBone.transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._boundChange); 这里的this._cacheRootBone非空,但是上面transform是...
来源: Laya_社区 发布时间: 20191015
...后续添加的图元。 求解。。。。 贴上代码: // 2D 场景 this.tMap = new Laya.TiledMap(); var viewRect:Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("res/TiledMap/orthogonal-test-movelayer.json",viewRect,Laya.Handler.create(this,this.onMapLoaded)); this.tMap.scale = 1; ...
来源: Laya_社区 发布时间: 20180514
...abox直接扫描右侧的二维码真机调试也是如此。 TypeError: this.cxt.fillText is not a function this.cxt.fillText(text, this.cav.width / 2, this.cav.height); ^^ ...
来源: Laya_社区 发布时间: 20200409
...ERATION: bindTexture: attempt to bind a deleted texture 代码示例: this.img = new Laya.Image(); this.img.loadImage("url"); const mask = new Laya.Sprite(); mask.graphics.drawCircle(75, 75, 75, "#ffffff"); this.img.mask = mask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.st...
来源: Laya_社区 发布时间: 20170106