大约有 596 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0055 秒)
Laya_社区(385) Laya3.0_api(135) Laya2.0_文档(25) Laya_示例(20) Laya3.0_文档(15) Laya2.0_示例(8) laya_api(5) Laya2.0_api(3)
...WebGL); } else{ Laya.init(1024, 1024); } //等待可调试 Laya.timer.once(1000, null, ()=>{ let mask = new Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") /...
来源: Laya_社区 发布时间: 20180224
...nelRotationTest = new PanelRotationTest(Laya.Panel); testPanelRotation.pos(1000,260); Laya.stage.addChild(testPanelRotation); Laya.Tween.to(testPanelRotation,{rotation:720},8000); Laya.Tween.to(testSpriteRotation,{rotation:720},8000); } } class PanelRotationTest extends Laya.Sprite{ constructor(disp...
来源: Laya_社区 发布时间: 20170814
...(!scene) return; var camera = this.scene.addChild(new Laya.Camera(0, 0.01, 1000)); camera.transform.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 15; this.mainCame...
来源: Laya_社区 发布时间: 20180126
...aya.WebGL; // 程序入口 class GameMain { constructor() { Laya.init(500, 1000, WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi);...
来源: Laya_社区 发布时间: 20180810
... // this._timeId = window.setInterval(this._enterFrame, 1000); ILaya.m_worker.postMessage(['wait']); } else if (this._timeId != 0) { // window.clearInterval(this._...
来源: Laya_社区 发布时间: 20201201
...un = function() { Laya.timer.once(300, this, function() {//给一个延迟 1000ms进度场景 alert('进度加载完毕'); this.Progress.visible = false; this.Start = new Start(); this.Start.zOrder = 2;//由于UI[b]编辑不能这只层级·需要用代码打..[/b] }) } return Class; })(); } var gam...
来源: Laya_社区 发布时间: 20170803
...1.6.2刚才更新到1.7.11打开还是这样。。下边代码 Laya.init(1000,600,Laya.WebGL); Laya.Stat.show(); Laya.stage.scaleMode = "showall"; var sp1=new Laya.Sprite(); sp1.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, ...
来源: Laya_社区 发布时间: 20171127
...e 两个属性的对象。 let KVData = { key: "test" + i, value: "" + i * 1000, } KVDataList.push(KVData); } /** * KVDataList:KV 数据列表 * success:接口调用成功的回调函数 * fail:接口调用失败的回调函数 * complete:接口调用结束的回调函数(调用成功、...
来源: Laya3.0_文档 发布时间: 20251010
...tyle"; namemap[0x2000]="_mergeID"; namemap[0x400]=namemap[0x800]=namemap[0x1000]=; namemap[0x4000]="textBaseline"; namemap[0x8000]="textAlign"; namemap[0x10000]="_nBlendType"; namemap[0x100000]="shader"; namemap[0x200000]="filters"; return namemap; } SaveBase.save=function(context,type,dataObj,newSu...
来源: Laya_社区 发布时间: 20171104
...为),最多执行6次 for(let i = 0; i < 6; i++){ Laya.timer.once(i * 1000, this, this.b, [i], false); } //遇到一些需求变化,我希望在2s之后(可能其它某些触发情况), 停止执行 b 函数(行为) Laya.timer.once(2000,this,()=>{ Laya.timer.clear(this, this.b); }); [/...
来源: Laya_社区 发布时间: 20200819