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

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

161. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 71%]

...url: ['res/bitmapFont/test.fnt'],     type: Laya.Loader.FONT }], Handler.create(this, () => {             console.log('bitmapFont loaded');                          this.onFontLoaded();         }), Handler.create(this, (progress) => {             console.log('bit...

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

162. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 70%]

...次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted));   public loadCompleted(sp:Laya.Sprite3D):void {     this._loaded = true;              let useObject:Laya.Sprite3D = sp.getChildAt(0) as Laya.Sprite3D; } 重复加载...

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

163. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 70%]

...er.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded...

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

164. TypeError: Cannot read property 'length' of null [ 70%]

...ab,b场景也包含预制体hero.prefab 在a场景通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)创建对象,同时给对象设置位置,成功 跳转到b场景后,通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)获取这个对象时,获取成...

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

165. TileMap有明显的bug [ 70%]

...前面。   该bug尝试了2.0,依旧存在。   该bug尝试了cocoscreator引擎,cocoscreator不会发生这个bug。   附上测试的代码(javascript):var WebGL = laya.webgl.WebGL; Laya.init(1920, 1080, WebGL); function _OnMapCreate() { console.log("map create ..."); } var viewRect...

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

166. Handler 未定义 [ 70%]

...请: 与内容相关的链接 提交 1 个回复 176*****233 赞同来自: create小写 2017-09-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cqgcs 相关问题 脚本未定义 laya3d项目构建原生,启动后包ConchShader未定...

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

167. 引用的类库问题 [ 70%]

...lectedIndex=0; ViewStack.__super.call(this); this._setIndexHandler=Handler.create(this,this.setIndex,null,false); } __class(ViewStack,'laya.ui.ViewStack',_super); 1. ViewStack.__super.call(this); 2. __class(ViewStack,'laya.ui.ViewStack',_super); 这两句代码是什么意思 2018-03-13 添加评论...

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

168. Laya.Tween.to 用这个做缓动动效, 变动scale值有问题, [ 70%]

...aya.Tween.to(this.load_1, { scaleX:0.01 }, 250, Laya.Ease.quadOut, Handler.create(this, this.tw1Complete1)); 只要是设置scale值最终变为0就有问题,, var style=this.getStyle(); 这个获取的style是空的,,这个问题不是必现的,,,,, 附件 : --> 2018-03-15 添加...

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

169. laya.d3.component.staticmesh.StaticBatchMeshRender_API3.0 [ 70%]

...nder onReset onStart onUpdate setRenderbitFlag __init__ changeVertexDefine create shaderValueInit Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/components/Component.ts:36 _receiveShadow _receiveShadow: boolean Inherited from PixelLineRenderer._rec...

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

170. 用Unity插件导出的模型渲染报错 [ 70%]

...55*****924:需要些时间的 155*****924 • 2019-05-16 15:16 Laya.loader.create("model/role/1/model.lh", Laya.Handler.create(this, this.OnComplete)); private OnComplete():void { let sprite:Laya.Sprite3D = Laya.loader.getRes("model/role/1/model.lh"); this._scene.addChild(sprite)...

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