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

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

1081. canvas下资源清理的问题 [ 77%]

...      }                  private function onClick(e:Event):void         {             switch(e.currentTarget)             {                 case btn1:                     show();                     break;        ...

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

1082. UI-ComboBox [ 77%]

...n, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } private createComboBox(skin: String): ComboBox { var comboBox: ComboBox = ne...

来源: Laya2.0_示例 发布时间: 20260303

1083. Sprite-容器 [ 77%]

...Laya.stage.bgColor = "#232628"; this.createApes(); } private createApes(): void { // 每只猩猩距离中心点150像素 var layoutRadius: number = 150; var radianUnit: number = Math.PI / 2; this.apesCtn = new Sprite(); Laya.stage.addChild(this.apesCtn); // 添加4张猩猩图片 for (var i: number...

来源: Laya2.0_示例 发布时间: 20260303

1084. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 77%]

...e.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动画模板 this.templet = new SpineTempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private pa...

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

1085. Sprite-容器 [ 77%]

...Laya.stage.bgColor = "#232628"; this.createApes(); } private createApes(): void { // 每只猩猩距离中心点150像素 var layoutRadius: number = 150; var radianUnit: number = Math.PI / 2; this.apesCtn = new Sprite(); Laya.stage.addChild(this.apesCtn); // 添加4张猩猩图片 for (var i: number...

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

1086. 3D粒子特效初始化卡顿 [ 77%]

...化时自动销毁 * **/ public function Load(url:String,isGroup:Boolean):void { _path = UrlConfig.EFFECT_PATH_3D+url; var itemComplete:Sprite3D = Laya.loader.getRes(_path); if(itemComplete == null || itemComplete.loaded == false){ var groupName:String = null; if(isGroup == true){ groupName = url; }...

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

1087. laya.resource.Texture [ 77%]

...相交,则返回null。 Texture  destroy(forceDispose:Boolean = false):void 销毁纹理(分直接销毁,跟计数销毁两种)。 Texture event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getPixels(x:Number, y:Number, width:Number, height:Number):Array 获取Te...

来源: laya_api 发布时间: 20170929

1088. laya.d3.core.material.UnlitMaterial [ 77%]

...odDefined By  UnlitMaterial()UnlitMaterial _addReference(count:int = 1):void[override] BaseMaterial _parse(data:*, propertyParams:Object = null, constructParams:Array = null):BaseMaterial[static] BaseMaterial _removeReference(count:int = 1):void[override] BaseMaterial clone():* 克隆。 BaseM...

来源: Laya2.0_api 发布时间: 20190513

1089. 微信小游戏截图 [ 77%]

...eight: 720, destWidth: 1280, destHeight: 720, success:function(res:Object):void{ imagePath = res.tempFilePath;//这个就是截屏的图片地址,可以将图片生成到相册,也可以使用这个地址用来里显示 wx.saveImageToPhotosAlbum({ filePath:imagePath, success:function(res:*):void...

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

1090. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 77%]

...ute vec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * position; } ``` 片元着色器 `outline.fs` 代码如下: ```c++ #ifdef FSHIGHPRECISION precision highp float; ...

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