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

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

251. app构建后在真机中运行报错 [ 68%]

...   }      __class(Prefab,'laya.components.Prefab');     var __proto=Prefab.prototype;     /**     *通过预制创建实例     */     __proto.create=function(){         if (this.json)return SceneUtils.createByData(null,this.json);         return null;  ...

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

252. 对话框点击空白处无法关闭 [ 68%]

...I(){ testUI.__super.call(this); } CLASS$(testUI,'ui.testUI',_super); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","props":{"width":266,"height":720},"child"...

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

253. 3D中如何限制角色的行走区域? [ 68%]

...btCollisionObject' of undefined bundle.js:68723     at PhysicsCollider.__proto._onAdded (/Users/admin/layaA4/layaA4/bin/js/bundle.js:68723:31)     at MeshSprite3D.__proto._addComponentInstance (/Users/admin/layaA4/layaA4/bin/js/bundle.js:39288:9)     at MeshSprite3D.__proto.addComponent (/User...

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

254. 为何定时时钟函数可以执行,但是得到的值却不会实时刷新 [ 68%]

...不会实时刷新 比如 this.loadNum=0; //资源加载进度中函数 _proto_.onProgress = function(){ //显示加载进度 Laya.timer.loop(100,this,this.ontime); this.txt_load.text = "资源加载中,当前进度:" + parseInt(this.loadNum) + "%"; //this.onComplete(); } //时钟定时执行函...

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

255. 用ts写代码 能用npm包吗 还有es6语法 [ 68%]

...efined" zengjoeng • 2017-11-15 09:17 我也是这个问题。我把.proto发布的时候使传参数-w es6 ,再用import就不报错了。然而运行起来到import的地方程序就不会继续执行了,也没有输出也没有报错。不知道是为什么? zengjoeng • 2017-11-15 0...

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

256. Spine动画资源加载时不能同时使用"版本管理"和"URL.basePath" [ 68%]

...对_path进行路径过滤,去掉它内部包含URL.basePath的部分 __proto.onComplete=function(content){ if (this._isDestroyed){ this.destroy(); return; }; var tSkBuffer=Loader.getRes(this._skBufferUrl); if (!tSkBuffer){ this.event(/*laya.events.Event.ERROR*/"error","load failed:"+this._skBuffe...

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

257. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 68%]

...Laya3D._onHierarchylhLoaded (libs/laya.d3.js:1933)     at EventHandler.__proto.runWith (libs/laya.core.js:1628)     at Loader.__proto.event (libs/laya.core.js:1384)     at Loader.__proto.complete (libs/laya.core.js:16209)     at Loader.__proto.onLoaded (libs/laya.core.js:16157)     at Even...

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

258. 寻求帮助 Uncaught TypeError: Cannot read property 'play' of null [ 68%]

... Uncaught TypeError: Cannot read property 'play' of null (see stack)#[0]__proto.play@/data/data/com.nearme.instant.platform/app_game/app/com.jinkejoy.talkingtomgoldrun.kyx.nearme.gamecenter/2115/libs/laya.quickgamemini.js:1838#[1]__proto.__onEnd@/data/data/com.nearme.instant.platform/app_game/app/co...

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

259. 载入场景报错 [ 67%]

...t/bin/TestScene/TestScene.ls) extension with: ls.     at LoaderManager.__proto._create (laya.core.js:12387)     at LoaderManager.__proto.create (laya.core.js:12375)     at new GameMain (LayaSample.ts:14)     at LayaSample.ts:25   能麻烦看看是什么原因吗 附件 : --> LayaTest.zip 2...

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

260. Byte writeArrayBuffer的Bug [ 67%]

LayaAir引擎 Byte writeArrayBuffer的Bug     __proto.writeArrayBuffer=function(arraybuffer,offset,length){         (offset===void 0)&& (offset=0);         (length===void 0)&& (length=0);         if (offset < 0 || length < 0)throw "writeArrayBuffer ...

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