大约有 4,101 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0078 秒)
Laya_社区(3322) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...pt //初始化舞台 Laya.init(1334, 750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //添加到舞台 Laya.stag...
来源: Laya2.0_文档 发布时间: 20210715
...n = true): void { super.destroy(true); this._bitmap && this._bitmap.destroy(); this._bitmap = null; } 2,当前资源加载完成后,回调设置皮肤资源找不到_bitmap /** * @private * 设置皮...
来源: Laya_社区 发布时间: 20191024
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle; this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/per...
来源: Laya2.0_示例 发布时间: 20251218
....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: ViewHeadViewTest = new ViewHeadViewTest(); //testUI.addChildAt(vhvt, 0); testUI.add...
来源: Laya_社区 发布时间: 20170822
... onAwake(): void { //禁用/启用鼠标右键 this.disableRightClick(); //this.enableRightClick(); //禁用Ctrl+c,Ctrl+v this.owner.on("keydown", this, (event: KeyboardEvent) => { if (event.ctrlKey && event....
来源: Laya_社区 发布时间: 20251115
...init函数 LoginView.prototype.init = function () { this.btnReg.on(Laya.Event.CLICK, this, this.onBtnReg); this.btnLogin.on(Laya.Event.CLICK, this, this.onBtnLogin); this.dlg = new NormalDialog(); this.dlg.init(); }; 附件...
来源: Laya_社区 发布时间: 20170317
..._update (laya.core.js:21262) 相关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Poo...
来源: Laya_社区 发布时间: 20191019
...w(); Laya.stage.frameRate = Laya.Stage.FRAME_FAST; //预加载所有资源 this.resource = [ "res/maze/img/demo/toolClock/Conventional/glow.lh", "res/maze/img/demo/Conventional/wang06.lh", "res/maze/img/demo/toolClock/Conventional/puzzleA.lh", "res/maze/img/demo/to...
来源: Laya_社区 发布时间: 20191209
...个位图字体教程的代码应该放在哪里,怎么引用,其中的this是指? 我自建了单独的文件,并在Main里import了它,输出看是undefined。 5.几处的路径不一致,它们的关系是? a.如图:把test_0.png名字改为test.png,保证跟fnt文件同名。...
来源: Laya_社区 发布时间: 20180919
...ar SightBead = (function () { function sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // ...
来源: Laya_社区 发布时间: 20171012