• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)

2631. 单选框组容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...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

2632. 混合模式-Lighter [ 35%]

...{ 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

2633. 混合模式-Lighter [ 35%]

...{ 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

2634. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 34%]

...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

2635. 安装layaair2-cmd一直失败 [ 34%]

...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

2636. Laya2.0编译后所有js都自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 34%]

...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

2637. 为什么会出现报错 ani not found:ufo1_down [ 34%]

... 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

2638. 自定义3D Shader · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

...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

2639. 材质-BlinnPhong-高光贴图 [ 34%]

...ularTexture = Texture2D.load(specularMapUrl[i]); } Laya.timer.frameLoop(1, null, function():void { dude1.transform.rotate(rotation); dude2.transform.rotate(rotation); }); } } }

来源: Laya_示例 发布时间: 20260303

2640. 按钮组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

...) => { 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