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

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

171. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 72%]

...yaAir3D constructer start loadres url:", this._sceneURl); Laya.loader.create([{url:this._sceneURl, clas:MyScene}], Laya.Handler.create(this, this.loadComplete)); } private loadComplete():void { console.log("debuginfo LayaAir3D constructer loadres complete"); this._scene = MyScene.load...

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

172. prefab添加runtime脚本 comp._addComponentInstance is not a function [ 72%]

... comp._addComponentInstance is not a function     at Function.SceneUtils.createComp (laya.core.js:11586)     at Function.SceneUtils.createByData (laya.core.js:11507)     at Prefab.__proto.create (laya.core.js:19301)     at Function.Pool.getItemByCreateFun (laya.core.js:5825)     at GameCon...

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

173. 新版本2.2.0又遇到BUG了,多到我都已经不好意思再反馈问题了 [ 72%]

...请看图。   再次翻开引擎的源码。     发现BaseCamera的_create,没有在子类Camera进行重写。 结果就是导致通过_create创建的实例全是BaseCamera。 这其实是程序员们粗心大意造成的。之前版本都正常。   发完这个帖,我已经彻底放弃...

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

174. AS代码如何new一个js库中的类并且使用这个类 [ 72%]

...要的类   //加载 Laya.loader.load(getModuleJSPath("abc.js"), Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{       //加载完回调       __JS__('window.eval(data + "//# sourceURL=" + "abc.js")');     //new需要的类       var loginView:* = __JS__('new co...

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

175. Laya.Script的派生类的_update函数不工作? [ 72%]

...法正常工作,已测试三台机器均无法正常工作 Laya.loader.create 进度回调函数执行两次 FBXTools.exe把模型拖上去就停止工作,不清楚是什么原因? 构造函数不能进断点 引擎有没有管理或访问系统剪贴板的方法函数 layaair在开发阶段...

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

176. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 72%]

....ATLAS }); //加载图集资源 Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 嗯 加载改好了 我们先来测试一下 图片是否能拿到 我们在onLoaded方法里面 写一点测试代码 如下   function onLoa...

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

177. Laya.SoundManager.playSound 无法播放出音效 [ 72%]

...load([{url:"sfx/hit01.mp3",type:Laya.Loader.SOUND}],Laya.Handler.create(this,this.onSfxLoad)); 但是提示[warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/hit01.mp3 资源文件是存在的 w1114367261 • 2018-04-23 11:30 1,直接playSound的话laya会先查找你是否加...

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

178. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 72%]

...ox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScen...

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

179. TieldMap is not counstructer [ 71%]

...._tMap);         //创建TiledMap地图         this._tMap.createMap("../bin/map/orthogonal-outside.json",viewRect,Laya.Handler.create(this,this.onComplete));     附件 : --> 2020-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

180. rigidBody.applyForce 物体不会移动 [ 71%]

...人物腳色 Laya.Scene3D.load( "res/build5/SampleScene.ls", Laya.Handler.create(this, this.onComplete) ); //射线初始化(必须初始化) this._ray = new Laya.Ray( new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0) ); //初始化变量 this.point = new Laya.Vector2(); this._outHitResult = ...

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