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

大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0061 秒)

3741. laya.d3.core.light.PointLight_API3.0 [ 49%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(n...

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

3742. 微信web页面贴图无法加载 [ 49%]

...WebGL: too many errors, no more errors will be reported to the console for this context. 但是在同一台手机上的qq浏览器、chrome上都是好的 这个是不是因为贴图太大了内存不够?有什么好的处理方法,或者有办法禁用Mipmap吗?   2018-03-30 添加评论 免...

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

3743. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 49%]

..."], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0);  Laya.stage.addChild(s); } 新建一个工程 這样写打包之后会白...

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

3744. 材质动画的使用(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 49%]

...eDimen/scene/materialScene/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); })); ```

来源: Laya2.0_文档 发布时间: 20210715

3745. 怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 [ 49%]

...       super.destroy(true);             Laya.loader.clearRes(this._path);         } 画红框的区域还在内存里。。 https://ask.layabox.com/question/14807     。。 附件 : --> 2018-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

3746. 动态阴影被切割了?为啥没有显示完成的阴影 [ 49%]

...NE; //开启统计信息 Laya.Stat.show(); Laya.stage.on(Laya.Event.CLICK, this, mouseHandler); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); function LayaAir3D() { //添加照相机 var camera = (scene.addChild(new Laya.Camera()));//0, 0.3, 100 camera.transform.translate(new L...

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

3747. 我来改代码! [ 49%]

...ERROR,"file not find"); return; } //保护修改-----end------------------ this.basePath =_atlasPath?Loader.getAtlas(_atlasPath).dir:_url.split(".swf")[0] + "/image/"; _initData(data);添加了这个保护后,代码不会报错,但是你的帧循环使用创建MC不会显示,不显示的原因...

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

3748. 粒子会不会有内存泄漏? [ 49%]

...hild(gameManager); Laya.loader.load("res/parts/lizi2.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } var i = 0; function onAssetsLoaded(settings) { var sp = new Particle2D(settings); sp.play(); sp.emitter.start(); sp.x = 100; sp.y = 100; sp.name = (i++).toString(); console.log(sp....

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

3749. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 49%]

...Laya.init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { var texture:Texture=Loader.getRes('res/apes/monkey2.png'); var sp:Sprite=new Sprite(); var matrix:Matrix=new Matrix(); matrix.rotate(Math.PI/4); matrix.translate(150,100); ...

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

3750. npm install layacmd -g之错 [ 48%]

...d layacmd:80 : ,layacmd npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! c:\Users\qykings\Documents\h5work\layaGame\trunk\npm-debug.log 2017-06-08 添加...

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