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

大约有 1,013 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0065 秒)

701. Laya.Vector3.equals方法比较两个方向相反的向量,结果也是相等? [ 53%]

...如: var a = new Laya.Vector3(1,0,0); var b = new Laya.Vector3(-1,0,0); console.log(Laya.Vector3.equals(a, b)); // 结果为true这样应该是不对的吧。 我现在只能把向量 x、y、z 分开来全部判断相等,才能判断相等。 2018-05-25 添加评论 免费帖 --> 分享 微博 ...

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

702. UI界面加载有哪些回调方法可用 [ 53%]

... 2017-07-20 10:17 浏览: 1250 关注: 2 人 peterz3g • 2017-07-20 10:22 console.log("----",this.body.getBounds(reference)); "Cannot read property 'getBounds' of undefined" getBounds怎么用? peterz3g • 2017-07-20 10:28 getBounds的结果和之前一样,都是0. Rectangl...

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

703. 今天打开微信工具出现错误Cannot read property 'USER_DATA_PATH' of undefined [ 53%]

...me/__ ... :13718)     at http://127.0.0.1:37684/game/gamePage.html:152:5 console.error errorReport @ WAGame.js:3 thirdErrorReport @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ WAGame.js:9 (anonymous) @ WAGame.js:4 a @ gamePage.html:1 window.onerror VM123:3 Thu May 24 2018 11:28:22 GMT+0800...

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

704. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 52%]

...imationEvent的动画事件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/Laya...

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

705. [LayaAir3]addComponent(Laya.Rigidbody3D); 报错 [ 52%]

...et a = this.owner.getChildByName("Sprite3D") as Laya.Sprite3D;         console.log(a,typeof(a))         let aa = a.addComponent(Laya.Rigidbody3D);     }   报错 TypeError: Cannot read properties of undefined (reading '__className')  使用版本laya 3.1.0 beta3 ,  老...

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

706. Sprite graphics的显示比例问题 [ 52%]

...ter.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, null, "#ff0000", 1); character.graph...

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

707. 代码和ide编辑器添加遮罩浏览器警告 [ 52%]

...ya.Sprite(); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是00,只要设置了mask,chrorme就...

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

708. Dialog.show 的 showEffect参数在微信真机上的问题 [ 52%]

...oader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI。 后来经过调试,...

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

709. 接管热更新失败的问题 [ 52%]

...更新失败会进入cofig.js里边 window.onLayaInitError==function=(e) {console.log("onLayaInitError error=" =+ e); talert(加载游戏失败,可能由于您的网络不稳定,请退出重进") } 这个方法,然后就停在这里了。这里能否再调回JAVA代码,让程序继续执行...

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

710. [LayaAir3]LayaAir3打android平台运行有Load script error 错误 [ 52%]

... 内容是没有错误 url也是对的window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); } 附件 : --> 2024-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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