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

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

851. laya的UI编辑页面显示不出来,但功能都能使用 [ 70%]

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

852. laya.d3.core.RenderableSprite3D_API3.0 [ 70%]

...的函数的名称。例如,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

853. laya.d3.math.Vector2_API3.0 [ 70%]

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

854. 仅在Android微信小游戏下图片错乱 [ 70%]

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

855. dialog 自定义关闭效果,效果执行完,弹窗无法关闭 [ 69%]

...己实现 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

856. WaterPrimaryMaterial的使用 [ 69%]

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

857. 其他引擎的Demo-Example_21 [ 69%]

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

858. laya.maths.Vector2_API3.0 [ 69%]

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

859. laya.physics.PhysicsDebugDraw_API3.0 [ 69%]

...区域滚动效果,但scrollRect会保持0,0点位置不变。 default null Returns Rectangle Inherited from Text.viewport Defined in laya/display/Sprite.ts:1885 视口大小,视口外的子对象,将不被渲染(如果想实现裁剪效果,请使用srollRect),合理使用能提高渲染...

来源: Laya3.0_api 发布时间: 20231115

860. 使用了destroy()之后,还需要手动移除侦听事件和引用吗? [ 69%]

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