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

大约有 2,728 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0062 秒)

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

1082. 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_示例 发布时间: 20241120

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

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

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

1086. 微信小游戏截图 [ 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

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

1088. 性能测试-虫子(慎入) [ 77%]

..., Handler.create(this, this.onTextureLoaded)); } private onTextureLoaded():void { this.maggotTexture = Laya.loader.getRes(this.texturePath); this.initMaggots(); Laya.timer.frameLoop(1, this, this.animate); } private initMaggots():void { var maggotContainer:Sprite; for (var i:number = 0; i wb.x + wb....

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

1089. UI-RadioGroup [ 77%]

... Handler.create(this, this.initRadioGroups)); } private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRa...

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

1090. UI-RadioGroup [ 77%]

... Handler.create(this, this.initRadioGroups)); } private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRa...

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