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

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

2461. [LayaAir3]3.3.1+3.3.2 多个后期处理增删会导致webgl报错 [ 45%]

...,就会出现webgl报错 Uncaught TypeError: Cannot read properties of null (reading '_mask')     at WebDefineDatas.addDefineDatas (WebDefineDatas.js:63:30)     at WebGLRenderElement2D._compileShader (WebGLRenderElement2D.js:46:24)     at WebGLRenderElement2D._prepare (WebGLRenderElement2D.j...

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

2462. 限制模型旋转角度 [ 45%]

...?是场景? fool_tiger • 2018-05-29 17:08 sphere.transform.parent 为null Laya_Aaron • 2018-05-29 16:33 不要动欧拉角。会 出问题。

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

2463. Animation 先clear当前的动画, 然后从浏览器缓存 加载下一个动画会闪一下,这个怎么解决? [ 45%]

...5-08 10:51 /// 加载的时候是这样写的 this.anim.loadAtlas(source , null, cacheName); this.anim.scaleX = 1; this.anim.scaleY = 1; this.anim.pivotX = 0; this.anim.pivotY = 0; this.anim.interval = 30; this.anim.play(); 在加载这个动作以前我会先清理上一个动画的资源 this.anim...

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

2464. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 45%]

...is.onComplete3D, [onProloadComplete]), new Handler(this, this.progressFun, null, false)); this.scene3d = Loader.getRes(sceneUrl) as Scene3D; Laya.stage.addChild(this.scene3d); 189*****909 • 2020-07-04 10:57 @熊猫大侠:需要释放掉,然后再次载入。 189*****909 • 2020-07-04 10:59 @熊...

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

2465. flash2D没有使用stage3D,所以性能很差,如果通过layaFlash转换成JS后,还存在性能问题吗? [ 45%]

...二、要注重内存的回收。不用的资源或数据,一定要置为null。 三、避免重复对象引用。尽可能要去用对象池,不要总new 对象。 四、多次实例对象引用的时候,要先把实例赋到变量里,再从变量中引用。还是引用问题,避免多...

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

2466. UI-ProgressBar [ 45%]

...ndler.create(this, onLoadComplete)); } private function onLoadComplete(e:*=null):void { progressBar = new ProgressBar("../../../../res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width ) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGr...

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

2467. Sprite-容器 [ 45%]

...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { apesCtn.rotation += 1; } } }

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

2468. Sprite-容器 [ 45%]

...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { apesCtn.rotation += 1; } } }

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

2469. 3D阴影无法渲染出来 [ 45%]

...form.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.8, 0.8, 0.8); directionLight.direction = new Laya.Vector3(-1, -1, 2); //灯光开启阴影 dire...

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

2470. 没有预加载的图片怎么获取width和height ? [ 45%]

...w Laya.Image(PHOTO); BaseLayer.addChild(photo); photo.on(Laya.Event.LOADED,null,function(){ console.log(photo.getGraphicBounds()); //此时得到的x、y、width、height都是0 }); 二、 Laya.loader.load(PHOTO, Laya.Handler.create(this, function(){ var photo = new Laya.Image(PHOTO); BaseLayer.addC...

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