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

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

2531. [LayaAir3]laya3.3图集使用平铺功能后绘制错误内容 [ 66%]

...ata=>{             let aaa = new Laya.Sprite();             this.addChild(aaa);             aaa.x = 100;             aaa.y = 100;             aaa.texture = data.frames[0];             let bbb = new Laya.Sprite();             this.addChild(bbb);       ...

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

2532. 修复图片加载跨域问题 [ 66%]

...释掉下面这几行 line:11045  //image.crossOrigin=""; line:17497  //this._source.crossOrigin=""; line:17480  if (src.indexOf("data:image")!=0)this._source.crossOrigin=""; 仅供参考,没有详细研究,不知道会不会引发其他bug,希望对大家有帮助   2017-02-04 添加评...

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

2533. 添加射线后,预览运行界面一块黑 [ 66%]

...23-02-20 08:18 window10 x64 仓颉 • 2023-02-20 08:33 跟Rabbit.ts中的 this.camera.viewportPointToRay(point, this.ray); 这个有关系 LayaAir3 • 2023-02-20 14:32 @仓颉:已经重现了,问题是Laya.Vector3.ZERO被修改了 把代码 var ray:Laya.Ray = new Laya.Ray(Laya.Vector3.ZERO,Laya....

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

2534. 你先用Laya.timer.frameLoop 然后再用tween才可以生效 直接用tween没用 [ 66%]

... 2 个回复 xueLayaBox - 爱学习 赞同来自: Laya.timer.frameLoop(1, this, this.resetPosition); resetPosition(): void {    var aniMonkey: Laya.Sprite3D = scene.getChildByName("monkey") as Laya.Sprite3D;    aniMonkey.transform.position = new Laya.Vector3(math,math,math); } Laya.Tween.to(aniM...

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

2535. 多光源渲染(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

2536. 多光源渲染(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

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

2538. 发布到微信小游戏后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

2539. 微信小游戏调试时发现,某些机器上会出现切换场景后屏幕不刷新 [ 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

2540. 使用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