大约有 2,741 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0059 秒)
Laya_社区(1926) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
...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_示例 发布时间: 20251223
...) => { 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
...th Defined in laya/components/Component.ts:35 Static EMPTY EMPTY: Widget = null Defined in laya/components/Widget.ts:11 一个已初始化的 Widget 实例。 Accessors awaked get awaked(): boolean Inherited from Component.awaked Defined in laya/components/Component.ts:86 Returns boolean bottom get ...
来源: Laya3.0_api 发布时间: 20231115
...normalTexture = Texture2D.load(normalMapUrl[i]); } Laya.timer.frameLoop(1, null, function():void { monster1.transform.rotate(rotation); monster2.transform.rotate(rotation); }); } } }
来源: Laya_示例 发布时间: 20251223
...th Defined in laya/components/Component.ts:35 Static EMPTY EMPTY: Widget = null Defined in laya/ui/Widget.ts:12 一个已初始化的 Widget 实例。 Accessors awaked get awaked(): boolean Inherited from Component.awaked Defined in laya/components/Component.ts:86 Returns boolean bottom get bottom()...
来源: Laya3.0_api 发布时间: 20231102
...r.load(ApePath, Handler.create(this, setup)); } private function setup(e:*=null):void { normalizeApe(); makeRedApe(); grayingApe(); } private function normalizeApe():void { var originalApe:Sprite = createApe(); apeTexture = Laya.loader.getRes(ApePath); originalApe.x = (Laya.stage.width - apeTexture....
来源: Laya2.0_文档 发布时间: 20210715
...载url Laya.loader.load(url,Laya.Handler.create(this,this.showImg,[url]),null,Laya.Loader.IMAGE); } private showImg(url:string):void{ var t:Laya.Texture = Laya.loader.getRes(url); var ape:Laya.Sprite = new Laya.Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200,0); } ``...
来源: Laya2.0_文档 发布时间: 20210714