大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
Laya_社区(1928) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(49)
...,就会出现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
...?是场景? fool_tiger • 2018-05-29 17:08 sphere.transform.parent 为null Laya_Aaron • 2018-05-29 16:33 不要动欧拉角。会 出问题。
来源: Laya_社区 发布时间: 20180529
...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
...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
...二、要注重内存的回收。不用的资源或数据,一定要置为null。 三、避免重复对象引用。尽可能要去用对象池,不要总new 对象。 四、多次实例对象引用的时候,要先把实例赋到变量里,再从变量中引用。还是引用问题,避免多...
来源: Laya_社区 发布时间: 20151102
...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
...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { apesCtn.rotation += 1; } } }
来源: Laya2.0_示例 发布时间: 20260303
...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { apesCtn.rotation += 1; } } }
来源: Laya_示例 发布时间: 20260303
...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
...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