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

大约有 153 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0039 秒)

11. discard property,please use transform's property instead [ 83%]

...耗性能         directionLight.shadowPCFType = 3;         Laya.loader.create([             "res/plane.lh",             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoo...

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

12. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 81%]

...Mode="horizontal"; //加载FGUI中的文件 var ProgressBar,resArray; Laya.loader.load([ {url:"res/Public.fui",type:laya.net.Loader.BUFFER}, {url:"res/Public@atlas_ucn9w.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas_ucn90.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas0.png",type...

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

13. VM6771:1 [GameOpenDataContext] Cannot assign to read only canvas. [ 80%]

...not read property 'loop' of null Uncaught TypeError: Cannot read property 'load' of null 问题状态 最新活动: 2019-04-24 09:36 浏览: 1676 关注: 2 人 Yangcy • 2019-04-23 17:48 阿西吧。。都已经五个月咯。。。。

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

14. 为什么mc取得的时候有时候mc.getBounds().width;有值有时候是0 [ 80%]

...mc取得的时候有时候mc.getBounds().width;有值有时候是0 Event.LOADED事件后输出宽度有时候还是0有时候却有值。这个是为什么呢?已经是在loaded事件以后的输出了。 附件 : --> 2016-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

15. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null[ 80%]

...f null” 发射时生成子弹: onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCol...

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

16. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 80%]

ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityP...

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

17. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 79%]

... Function.Texture._create (laya.core.js:15946)     at Texture.__proto._onLoaded (laya.core.js:15750)     at EventHandler.__proto.runWith (laya.core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._endLoad (laya.core.js:14880)     at Loader.onLoaded (l...

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

18. layabox加载fairygui发布的二进制文件报错 [ 78%]

...游戏加载不了,路径没问题,麻烦看下   加载代码 Laya.loader.load([             { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },             { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},             { url:"res/Bag.json", type:Laya.Loader.BUFFER}  ...

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

19. TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. [ 78%]

...ught TypeError: Cannot read property 'cursor' of undefined错误 Failed to load resource: net::ERR_FILE_NOT_FOUND Uncaught TypeError: Cannot read property 'props' of undefined TypeError: Cannot read property 'm_jointList' of null 【新手求助】播放动画问题 Uncaught TypeError: Cannot read p...

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

20. 关于资源加载的问题 [ 77%]

...-03-27 20:40 是的,拖好按F12发布,然后代码是这样子的 let loadArray = [{url : "games/game_13/shakeask_bg.jpg"}, {url : "res/atlas/games/game_13/image.atlas"} ]; Laya.loader.load(loadArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.a...

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