大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
Laya_社区(1928) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(49)
...en(() => { this.onLoadComplete(); }); } private onLoadComplete(e: any = null): void { for (let i: number = 0; i < this.skins.length; ++i) { let rg: Laya.RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } p...
来源: Laya3.0_文档 发布时间: 20251016
...{ r: channels[0], g: channels[1], b: channels[2] }, this.gradientInterval, null, Handler.create(this, this.onTweenComplete)); } private getColorChannals(color: number): Array { var result: Array = []; result.push(color >> 16); result.push(color >> 8 & 0xFF); result.push(color & 0xFF); return result;...
来源: Laya_示例 发布时间: 20260303
...{ r: channels[0], g: channels[1], b: channels[2] }, this.gradientInterval, null, Handler.create(this, this.onTweenComplete)); } private getColorChannals(color: number): Array { var result: Array = []; result.push(color >> 16); result.push(color >> 8 & 0xFF); result.push(color & 0xFF); return result;...
来源: Laya2.0_示例 发布时间: 20260303
...r来加载url Laya.loader.load(url,Laya.Handler.create(this,showImg,[url]),null,Laya.Loader.IMAGE); } function errorHandler(url){ var t = new Laya.loader.getRes(url); var ape = new Laya.Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200,0); } ``` 第三种我们直接...
来源: Laya2.0_文档 发布时间: 20210715
...fecycle jpeg-recompress-bin@4.0.0~postinstall: Returned: code: 0 signal: null 31922 silly postinstall download@6.2.5 31923 info lifecycle download@6.2.5~postinstall: download@6.2.5 31924 silly postinstall bin-build@3.0.0 31925 info lifecycle bin-build@3.0.0~postinstall: bin-build@3.0.0 31926 silly...
来源: Laya_社区 发布时间: 20200211
...xpressions and declarations with an implied 'any' type. */ // "strictNullChecks": true, /* Enable strict null checks. */ // "strictFunctionTypes": true, /* Enable strict checking of function types. */ // "strictPropertyInitialization": true, /*...
来源: Laya_社区 发布时间: 20190408
... Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 this.hero.shootType = 1; // 设置主角的位置 this...
来源: Laya_社区 发布时间: 20170525
...ool, default: false } }, styles: { RAIN : { caption: "下雨", inspector : null }, //inspector为null,不显示在属性面板 SNOWY : { caption: "下雪"}, // 定义不属于uniform和define的属性 weather : { caption:"天气", inspector: RadioGroup, options: { members: [RAIN, SNOWY] }} }, RAIN...
来源: Laya3.0_文档 发布时间: 20251010
...ularTexture = Texture2D.load(specularMapUrl[i]); } Laya.timer.frameLoop(1, null, function():void { dude1.transform.rotate(rotation); dude2.transform.rotate(rotation); }); } } }
来源: Laya_示例 发布时间: 20260303
...) => { this.onUIAssetsLoaded(); }); } private onUIAssetsLoaded(e: any = null): void { for (var i: number = 0, len: number = this.skins.length; i < len; ++i) { var btn: Laya.Button = this.createButton(this.skins[i]); var x: number = i % this.COLUMNS * this.HORIZONTAL_SPACING + this.xOffset; var...
来源: Laya3.0_文档 发布时间: 20251010