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

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

1751. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 63%]

...的任何一个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

1752. 类似抠图、挖空效果的实现 [ 63%]

...        }                  private function onBoxClick():void {             trace("box");         }                  private function onClick():void {             trace("blue");         }     } } 2016-11-22 1 1 分享 微博 QZONE 微信...

来源: Laya_社区 发布时间: 20161122

1753. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 63%]

...Dimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个灰度图...

来源: Laya2.0_文档 发布时间: 20210714

1754. 给Dictionary添加个长度 [ 63%]

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

1755. UI-Label [ 63%]

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

1756. laya.net.HttpRequest [ 63%]

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

1757. 【求助】关于Cannot read property 'visible' of undefined问题 [ 63%]

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

1758. 粒子-粒子演示1 [ 63%]

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

1759. 动画节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 63%]

...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay = true; //开启自动播放 this.ani.wrapMode = 0; //播放模式为正序播放模式(POSITIVE) this.ani.interval = 50;...

来源: Laya3.0_文档 发布时间: 20251010

1760. 粒子-粒子演示2 [ 63%]

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