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

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

2541. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 66%]

...c onUpdate(){ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.s...

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

2542. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 66%]

...c onUpdate(){ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.s...

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

2543. Laya进入编辑模式就报这个错误 Laya3d init error ,must support webGL [ 66%]

..., 2、在LayaAirIDE根目录\resources\app\out找到main.js,打开在this.app.once("ready"上面加一行: this.app.commandLine.appendSwitch("ignore-gpu-blacklist"); 保存,重启IDE再试试 3、如果以上还没解决,请百度搜索,如何强制开启webgl   2019-12-06 0 0 分享 微...

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

2544. 发布到微信小游戏后Timer的getHandler报错了 [ 66%]

...|| (caller.$_GID=Utils.getGID()):0; var mid=method.$_TID || (method.$_TID=(this._mid++)*100000); return this._map[cid+mid]; } 请教一下大家,有遇到过这个问题吗?请问怎么解决? 2018-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

2545. 微信小游戏调试时发现,某些机器上会出现切换场景后屏幕不刷新 [ 66%]

... • 2019-02-28 10:22 是的,Laya.loader.load(resURL,Laya.Handler.create(this,this.afterLoadAllRes)); resURL 里经常有多个资源,都加载完了再调用的afterLoadAllRes干别的事情,为的是一些界面的绘制能够完整 王亚飞 • 2019-09-05 13:29 :楼主解决了吗

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

2546. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 66%]

...这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统计面板的CurMem降不下来,工程已经打包上传...

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

2547. Unity导出插件导出的模型中Transform值有误 [ 66%]

...ionEuler是-90,0,0 导出成ls以后,通过打印节点:let colliderItem = this._rootNode.getChildByName("XCD_zhazhiji") as Laya.Sprite3D; console.log(colliderItem.transform.localRotationEuler);得出结果: 附上导出以后ls源文件截图:   另外这个模型有点特殊,这个节点(XCD_zhaz...

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

2548. Laya.loader.create 不会反馈失败状态跟描述不符合 [ 66%]

.../Conventional/scene2.ls"] Laya.loader.create(resource, Laya.Handler.create(this, (success:boolean) => { console.log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number) => { })); 这是个数组。。但是场景文件不存在,失败参数都是空的。。跟文档...

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

2549. IOS微信内置浏览器陀螺仪问题 Laya2.4.0bate [ 66%]

...n', function(event)  {}) Laya.Gyroscope.instance.on(Laya.Event.CHANGE, thisthis.onDeviceorientation);  连接打开方式都由微信扫一扫打开,safari不支持此demo运行 查找到资料地址: https://caniuse.com/#search=deviceorientation ios测试微信浏览器页面地址: https:/...

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

2550. Graphics如何设置fillStyle和strokeStyle不同透明度 [ 66%]

...但是可以完全透明, 相应位置的参数为空即可   例如: this.graphics.drawPath(0, 0, Yu_path3, {fillStyle: "#ffffff"}, {"strokeStyle":"#E3E3E5","lineWidth":2}); 填充色为白色   this.graphics.drawPath(0, 0, Yu_path3, null, {"strokeStyle":"#E3E3E5","lineWidth":2}); 无填充...

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