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

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

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

...}, {url:"res/Public@sl4615.mp3",type:laya.net.Loader.SOUND} ],Laya.Handler.create(this,onLoaded));  /*登录界面*/ var resArray=[ {url:"res/LoginView.fui",type:laya.net.Loader.BUFFER}, {url:"res/LoginView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function onLoaded(...

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

92. Unity导出的特效,缓存后第一次加载能播放,此后再加载不播放的问题 [ 77%]

...第一次加载能播放,此后再加载不播放的问题 Laya.loader.create缓存加载的 2017-06-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 gy760736077 赞同来自: 还有,即使缓存了.lh文件...

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

93. _calculateCacheRect函数有bug [ 77%]

...   if(!this.tempRect){                 this.tempRect = Rectangle.create();             }             if (this.cacheRect)                 this.cacheRect.recover();             this.cacheRect = null;             return this;         }   _calculateCacheRect...

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

94. Pool 使用 Laya.Prefab [ 77%]

...ab public targetBox:Laya.Prefab; let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("ItemBox", this._control.targetBox.create, this._control.targetBox); 运行报错: Cannot read property 'create' of undefined targetBox又在 control里面引用一个Prefab 2019-08-26 添加评论 免费帖 --> 分...

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

95. laya.resource.Prefab_API3.0 [ 77%]

...y Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory addDep addDeps create destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new Prefab(version?: number): Prefab Overrides Resource._...

来源: Laya3.0_api 发布时间: 20231115

96. UI-FontClip [ 77%]

...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Laya.Handler.create(this, this.ShowContent)); } ShowContent() { const FontClip = Laya.FontClip; var clipnum= new FontClip(assets[0]); var fontClip = new FontClip(assets[1]); var TestFontClip = new FontClip(assets[1]); var TestClipNum = ne...

来源: Laya2.0_示例 发布时间: 20251209

97. 添加组件PhysicsCollider 时报 Cannot read property 'btCollisionObject' of undefined [ 77%]

...加载完运行过回调函数以后再进行。如下句 : Laya.loader.create( MyResouces.arrResources, Handler.create(this,onLoadComplete) ); 意为加载完MyResouces.arrResources这些资源后调用方法onLoadComplete,添加碰撞盒子需要在onLoadComplete里或者onLoadComplete运行...

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

98. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 76%]

...    Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         Laya.Texture2D.load("res/threeDimen/Physics/plywood.jpg", Laya.Handler.create(this, function (tex) {           ...

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

99. 报错,这不是个构造函数 "StartPage is not a constructor" [ 76%]

...这不是个构造函数 "StartPage is not a constructor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample =...

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

100. 3d特效克隆时,在手机会现卡顿情况,特效资源已经提前在加载 [ 76%]

...  }                                  Laya.loader.create(_path, Handler.create(this,OnComplete,null),null,null,null,1,true,groupName);                                  }else{                                  var item:Sprite3D = ...

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