大约有 2,033 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...报错。(这就有点恐怖) 注:已经是 for (var i = 0, n = this.length; i < n; i++) 赋值了。 没时间去仔细改,现在用暴力方式改一下: if (index !== -1){ console.log("SimpleSingletonList:" + element + " has in SingletonList."); this.clear(); ...
来源: Laya_社区 发布时间: 20200910
...omp/btn_start.png","测试按钮"); bt.on(Laya.Event.CLICK, this, this.click); Laya.stage.addChild(bt); function click() { console.log("??????????"); } 点击之后没有翻译,按钮也没有点击的动画 cuixueying • 2017-04-24 11:07 我们测试是OK的,你的butt...
来源: Laya_社区 发布时间: 20170421
...码为按钮点击后 出现popup并且模拟进度条加载 按钮代码: this.testLoadingBar_anim.on(Event.CLICK,this,()=>{ var loading : Onloading = new Onloading(); loading.popup(true); Laya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = La...
来源: Laya_社区 发布时间: 20180524
...der.load([ "res/atlas/test.atlas", "json/reward.json"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); ``` onComplete方法,注意与原版有部分修改。 ```typescript onComplete() { //获取资源 var testJosn = Laya.loader.getRes("json/reward.json"); //输出透传过来的json ...
来源: Laya2.0_文档 发布时间: 20210715
this.bitmap.activeResource is not a function. 排行榜主域绘制开放数据域sharedCanvas时候报错。代码如下:var rankTexture = new Laya.Texture(Laya.Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); spri...
来源: Laya_社区 发布时间: 20190920
...ngContext":No function was found that matched the signature provided 在this.texture2D.loadImageSource(this.cav);报错 this.cav = Laya.Browser.createElement("canvas"); this.cav.width = 256; this.cav.height = 256; var cxt = this.cav.getContext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5...
来源: Laya_社区 发布时间: 20200714
... sp.graphics.drawPie(0, 0, 300, 0, 90, "#00ffff"); sp.on(Laya.Event.CLICK, this, this.aa) sp.mouseEnabled = true; // 设置点击区域没有作用 var hitArea = new Laya.HitArea(); hitArea.unhit.drawPie(0, 0, 150, 0, 90, "#00ffff"); sp.hitArea = hitArea; 我想要实现的效果就是一个扇形...
来源: Laya_社区 发布时间: 20180119
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.drawPentagram(); } drawPentagram() { let canvas = new Laya.Sprite(); Laya.stage.addChild(canvas); let path = []; path.push(0, -130); path.push(33, -33); path.push(137, -30); path.push(55, 32); path.push(85, 130); path.pu...
来源: Laya2.0_示例 发布时间: 20251218
...题,会丢失 private nsp:Laya.Sprite; init(): void { this.nsp=new Laya.Sprite(); this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000"); this.nsp.mouseThrough=true; Laya.stage.addChild(this.nsp); this.nsp.on(Laya.Event.CLICK,this,this...
来源: Laya_社区 发布时间: 20220809
...ya.Sprite3D(); let pointCom = pointLight.addComponent(Laya.PointLightCom); this.scene.addChild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、Di...
来源: Laya3.0_文档 发布时间: 20251010