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

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

261. 射线一直无法获取物体 [ 66%]

...prite3D.load("./test.lh"));     qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){         qb_pet.addComponent(Laya.SphereCollider);     });   设置射线:    Laya.timer.frameLoop(1, null, checkHit);     var hit = new Laya.RaycastHit();     var point = new Laya.Vector2(); ...

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

262. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 66%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方...

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

263. 技术文档中的示例js运行报错 [ 66%]

...集,实现遮罩效果 里边的示例运行报错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(th...

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

264. Not FoundLayaAirIDE_1.7.10_beta 無法下載 [ 66%]

... The requested URL /download/LayaAirIDE_1.7.10_beta.zip was not found on this server.   The requested URL /download/LayaAirTS_1.7.10_beta.zip was not found on this server.   麻煩提供檔案到外網,好讓其他開發者下載。 2017-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

265. loader.create加载.lh文件,如果文件不存在,也不会受到Event.Error事件 [ 66%]

...自: 按照例子里面: // 侦听加载失败 Laya.loader.on(Event.ERROR, this, this.onError);   实际上是把事件注册到LoaderManager上了   但是实际上加载失败了以后,事件触发的是loader   这个问题我记得之前有个同学问的加载线程最大时错误无法通...

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

266. 内嵌模式创建scene,运行时报找不到json文件 [ 66%]

...}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(HelloUI.uiView); } } REG("ui.HelloUI",HelloUI); } 附件 : --> TestDemo.zip 2019-06-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0...

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

267. Laya.Scene.open 中的complete参数如何取得场景实例? [ 65%]

...        var handler : laya.utils.Handler = laya.utils.Handler.create(this, this.onGetStartScene);         GameConfig.startScene && Laya.Scene.open(GameConfig.startScene, true, null, handler ); // open的返回值是void,所以不能通过open的返回值拿到     }     o...

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

268. .lh 文件不能在同一js文件内重复引用吗? [ 65%]

...ar shelf0 = Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(shelf0);            shelf0.transform.translate(new Laya.Vector3(-4,1.2,35));            var shelf3 = Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(s...

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

269. TS分离模式设置未打包图片输出目录导出资源无法加载未打包资源 [ 65%]

...   { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.onLoaded)); 运行报错: [warn]Retry to load: comp/image.png [error]Failed to load: comp/image.png   修改导出的TestPage.json里面对应控件引用的skin值加上对应路径 "skin":"unpack/comp/image.png"...

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

270. 为什么laya2.0加载不了.lm文件? [ 65%]

.../Assets/BakerHouse/Models/Baker_house-Baker_house.lm"],Laya.Handler.create(this, this.completeHandler)); completeHandler(): void { Laya.stage.addChild(Laya.loader.getRes("LayaScene_Scene/Scene.ls")); Laya.stage.addChild(Laya.loader.getRes("LayaScene_Scene/Assets/BakerHouse/Models/Baker_house-Baker_h...

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