大约有 2,740 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0154 秒)
Laya_社区(1925) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
...发商 Uncaught TypeError: Cannot set property 'createCommandEncoder' of null TypeError: Cannot set property 'createCommandEncoder' of null at Function.Laya3D.__init__ (file:///C:/Users/zyl/Downloads/LayaAirIDE_beta%20(1)/resources/app/out/vs/layaEditor/h5/renders/uiviewer/Editor.max.js:86236:...
来源: Laya_社区 发布时间: 20181022
...的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清理定时器。功能同Laya.ti...
来源: Laya3.0_api 发布时间: 20231115
...rns void forNativeElement forNativeElement(nativeElements?: Float32Array | null): void Defined in laya/d3/math/Vector2.ts:130 Parameters Default value nativeElements: Float32Array | null = null Returns void fromArray fromArray(array: ArrayLike<number>, offset?: number): void Defined in laya/d3...
来源: Laya3.0_api 发布时间: 20231102
...oader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console.log(Laya.loader.getRes("res/ui/share@atlas0.png"))//此处会报循环引用错误,也就Android小游戏会 ...
来源: Laya_社区 发布时间: 20180609
...己实现 this.closeEffect = Laya.Handler.create(this,this.onCloseEffect,null,true); //具体的实现代码 _proto_.onCloseEffect = function(){ Laya.Tween.to(this,{ x:-100 //动画结束就关闭 },1000,null,Laya.Handler.create(this,this.close)); } 但是动画结束了,关闭不了 2017-08...
来源: Laya_社区 发布时间: 20170809
... Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoText...
来源: Laya_社区 发布时间: 20181030
...nvasGraphics = graphicsCanvas.graphics; } private function onMouseDown(e:*=null):void { isDown = true; color = colors[colorCount++ % colors.length]; path.length = 0; } private function onMouseMove(e:*=null):void { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } pri...
来源: Laya_示例 发布时间: 20251219
...rns void forNativeElement forNativeElement(nativeElements?: Float32Array | null): void Defined in laya/maths/Vector2.ts:142 Parameters Default value nativeElements: Float32Array | null = null Returns void fromArray fromArray(array: ArrayLike<number>, offset?: number): void Defined in laya/math...
来源: Laya3.0_api 发布时间: 20231115
...区域滚动效果,但scrollRect会保持0,0点位置不变。 default null Returns Rectangle Inherited from Text.viewport Defined in laya/display/Sprite.ts:1885 视口大小,视口外的子对象,将不被渲染(如果想实现裁剪效果,请使用srollRect),合理使用能提高渲染...
来源: Laya3.0_api 发布时间: 20231115
...一个img属性,对应的是一个image。我需要手动将img属性置null吗? 比如:public destroy(){ super.destroy(); this.img = null; } 这个有必要吗? 最后,有没有关于优化的比较系统的文档,https://ldc.layabox.com/doc/?nav=zh-js-3-2-1和https://ldc.layabox.com/do...
来源: Laya_社区 发布时间: 20170914