大约有 2,728 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1131) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya2.0_示例(109) Laya3.0_文档(87)
...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
...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
...化时自动销毁 * **/ 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
...相交,则返回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
...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
...eight: 720, destWidth: 1280, destHeight: 720, success:function(res:Object):void{ imagePath = res.tempFilePath;//这个就是截屏的图片地址,可以将图片生成到相册,也可以使用这个地址用来里显示 wx.saveImageToPhotosAlbum({ filePath:imagePath, success:function(res:*):void...
来源: Laya_社区 发布时间: 20190515
...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
..., 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
... 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
... 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