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

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

831. 有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 [ 70%]

...Laya.Handler.create(this, fGameLoad), Laya.Handler.create(this, onLoading, null, false), null, 1, true, sGameMark, false); Laya.loader.on(Event.ERROR, this, onError); 预加载资源添加了完成 进度 和失败监听  在手机上有时加载进度会卡在某个数值不动 不会触发加载...

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

832. QQ里扫一扫打开网页,不响应Laya.Event.FOCUS事件,导致失去焦点后,声音异常 [ 70%]

...oundManager.playSound("sound/bg1.mp3", 0); Laya.stage.on(Laya.Event.FOCUS, null, function(){ console.log("获取焦点") Laya.SoundManager.playSound("sound/bg1.mp3", 0); }) Laya.stage.on(Laya.Event.BLUR, null, function(){ console.log("失去焦点") }) 2018-08-07 添加评论 免费帖 --> 分享 ...

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

833. laya.d3.core.trail.TrailSprite3D_API3.0 [ 70%]

.../d3/core/trail/TrailSprite3D.ts:36 Parameters Default value name: string = null Returns TrailSprite3D Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:56 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 Optiona...

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

834. Laya.loader Progress回调形同虚设 [ 70%]

...则触发一次该回调就会被回收 Handler.create(this, onProgress, null ,false)   2018-04-28 0 0 分享 微博 QZONE 微信 176*****233 赞同来自: hander写成new Handler(this, onProgress) 或 Handler.create(this, onProgress, null ,false) 2018-04-28 0 0 分享 微博 QZONE 微信 一点...

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

835. 发布微信小游戏,vivo,oppo真机报错 [ 70%]

...机报错,报错错信息如下 Cannot read property 'HALF_FLOAT_OES' of null;at requestAnimationFrame callback function TypeError: Cannot read property 'HALF_FLOAT_OES' of null at RenderTexture._texImage2D (game.js:18:184542) 引擎源代码出错位置如图:  浏览器和微信IDE调试还...

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

836. sprite之bug [ 70%]

...rite--")  return;  }    if(!style._tf)  {  trace("----sprite--_tf is null--");  return;  }    if (style._tf.scaleX !== value) {  style.setScaleX(value);  _changeType |= CHG_VIEW;  _tfChanged = true;  conchModel && conchModel.scale(value, style._tf.scaleY);  _renderType |= Rend...

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

837. Handler.create的回收问题 [ 70%]

...lor = "#232628"; this.h1 = Laya.Handler.create(this, this.loadPicComplete, null, true); Laya.loader.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 = Laya.Handler.create(this, this.loadPicComplete, null, tru...

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

838. laya.html.dom.HTMLDivElement_API3.0 [ 70%]

...区域滚动效果,但scrollRect会保持0,0点位置不变。 default null Returns Rectangle Inherited from AnimationBase.viewport Defined in laya/display/Sprite.ts:1832 视口大小,视口外的子对象,将不被渲染(如果想实现裁剪效果,请使用srollRect),合理使用能提...

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

839. 设置cacheAs = bitmap时, drawCanvas 的一个bug [ 70%]

... /* this._submits[this._submits._length++] = SubmitCanvas.create(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getTexture(), x, y, width, height, 0, 0); */ //应用并清空canvas中的指令。如果内容需要重画,RenderSprite会给...

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

840. destroyChildren 销毁对象后为什么依旧能取得内部属性 removeChildren destroyChildren的区别 [ 70%]

...自: 这个销毁是从显示列表和显存中销毁,你把_bottomBtn置null,就OK了! 2017-03-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Richer 相关问题 两个对象new了一个相同的对象,调用第一个的一...

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