大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...的任何一个list item,触发方法: private onSelect(index:number):void { console.log("当前选择的索引:" + index); //this.theItem = new DlgNote2(); //this.theItem.popup(); Laya.Scene.open("note2Dlg.scene"); } ——就是这里:我希望打开b的时候,a是在...
来源: Laya_社区 发布时间: 20190521
... } private function onBoxClick():void { trace("box"); } private function onClick():void { trace("blue"); } } } 2016-11-22 1 1 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20161122
...Dimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` (图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个灰度图...
来源: Laya2.0_文档 发布时间: 20210714
...key 键名。 * @param value 值。 */ public function set(key:*, value:*):void { var index:int = indexOf(key); if (index >= 0) { _values[index] = value; return; } _keys.push(key); _values.push(value); ++_lenght; } /** * 获取指定对象的键名索引。 * @param key 键名对象。 * @return ...
来源: Laya_社区 发布时间: 20180619
..._SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel...
来源: Laya_示例 发布时间: 20260303
...ll, method:String = get, responseType:String = text, headers:Array = null):void 发送 HTTP 请求。 HttpRequestEvents Event Summary Defined By complete请求结束后调度。HttpRequest error请求出错时调度。HttpRequest progress请求进度改变时调度。HttpRequestProperty De...
来源: laya_api 发布时间: 20170929
...ndefined问题 我的代码是这样子的: private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new Food("菜品2", "2", 1)); foodsList.push(new Food("菜...
来源: Laya_社区 发布时间: 20180405
...), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.height / 2; } } } new laya.Particle_T1();package { imp...
来源: Laya2.0_示例 发布时间: 20260303
...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay = true; //开启自动播放 this.ani.wrapMode = 0; //播放模式为正序播放模式(POSITIVE) this.ani.interval = 50;...
来源: Laya3.0_文档 发布时间: 20251010
...), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.height / 2; } } } new laya.Particle_T2();package { imp...
来源: Laya2.0_示例 发布时间: 20260303