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

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

101. 引擎自带的图集图片丢失问题 [ 76%]

.../comp.atlas",type:Laya.Loader.ATLAS}] Laya.loader.load(tArray,Laya.Handler.create(this,onResLoaded()));   里面的button和checkbox提示丢失了。是什么原因??   附件 : --> 2018-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

102. 物理Bodies绑定Laya.Sprite [ 76%]

...idth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.engine.world; Matter.Engine.run(this.engine); // Engine 启动 var render = LayaRender.create({ engine: this.engine, options: { wireframes: false, background: "#0...

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

103. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 76%]

...也遇到了这个问题 Texture2D.load("res/env/mountain1_3.png", Handler.create(null, function(tex:Texture2D):void {             menu_sprite_jian.graphics.drawTexture(tex,0,0);             }));这样然后无法drawtexture报同样的错误 但是这个type要如何加上去...

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

104. Laya中Button等组件lose skin的问题 [ 76%]

...g2.jpg",type:Laya.Loader.IMAGE} ];  Laya.loader.load(resArr, Laya.Handler.create(null, onLoaded));  function onLoaded(): void {     Laya.URL.basePath ="https://xxx.com/";     //实例UI界面     var Main: MenuPageUI = new MenuPageUI();     Laya.stage.addChild(Main); } 在我找原...

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

105. 内存释放问题 [ 76%]

...Loader.TEXT } // 协议文件 ]; Laya.loader.load(uiResArray, Laya.Handler.create(this, onCompleted), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {string[]...

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

106. 如何往TiledMap格子内追加精灵 [ 76%]

...ap.getLayerByIndex(2); mallLayer = tiledMap.getLayerByName("animation"); //Create Bear Start for(var sCnt = 0; sCnt < 20; sCnt++){ createSprite(sCnt) } //Create Bear End } function createSprite(no){ var flower = new Sprite(); flower.loadImage(texture1); flower.pos((0 + no) * 99.5, 73); flower.mou...

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

107. laya.device.media.HtmlVideo_API3.0 [ 76%]

...y Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getVideo hasListener isCreateFromURL off offAll offAllCaller on once setSource create destroyUnusedResources Constructors constructor new HtmlVideo(): HtmlVideo Overrides Bitmap.__constru...

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

108. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 76%]

Animation 的createFrames 使用已经加载的图集缓存动画失败 我load图集之后, 使用Animation的createFrames缓存动作, api里写着可以使用已经加载的图集动画,结果却又去下载了,地址当然不正确了,导致无法下载.代码大致如下: Laya.loader.load('pla...

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

109. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 76%]

...r completeHandler:Handler; public function A() { completeHandler = Handler.create(this,onComplete,[this]); completeHandler.run(); new B().load(completeHandler); trace('A',completeHandler.method == null,completeHandler['_id']) } private function onComplete():void { trace('haha') } } }package { import...

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

110. Laya.tween设置了完成回调函数,但是偶尔会出现不回调的问题 [ 75%]

....Tween.to(item.value, toProps, item.duration *1000, item.easeType, Handler.create(this,this.__tweenRepeatComplete,[item])); 这代码只是个示例 item.tweener.update=Handler.create(this,this.__tweenUpdate,[item],false);}还有我感觉当Tween.to 的第二个参数为{} 的时候,应该也会...

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