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

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

431. 通过html的input类型file上传图片,然后通过FileReader获取图片数据之后设置laya的image.skin图片不显示 [ 49%]

...FileReader获取图片数据之后设置laya的image.skin图片不显示 __proto.uploaderHandler=function (files) {              var self=this; var file=files[0];              var reader=new FileReader();               reader.onload=function () {                     ...

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

432. playSound和playMusic结束时候有异常抛出 [ 49%]

...res/music/Music_start.mp3") 3. 声音播放完成后,系统抛出异常__proto._tryClearBuffer=function(sourceNode){ try {sourceNode.buffer=WebAudioSound._miniBuffer;}catch (e){WebAudioSoundChannel._tryCleanFailed=true;} } 求解,谢谢 2017-01-05 添加评论 免费帖 --> 分享 微博 QZONE ...

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

433. 安卓手机输入不了中文 [ 49%]

...   }         }   直接修改库的话 laya.core.js     __proto._setInputMethod=function(){         Input.input.parentElement && (Input.inputContainer.removeChild(Input.input));         Input.area.parentElement && (Input.inputContainer.removeChild(...

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

434. 播放音效时报错Failed to set the 'buffer' property on 'AudioBufferSourceNode'的问题 [ 49%]

...Failed to set the 'buffer' property on 'AudioBufferSourceNode'的问题 __proto._tryClearBuffer=function(sourceNode){ // if (!Browser.onMac){ // try{ // sourceNode.buffer=null; // }catch (e){ // WebAudioSoundChannel._tryCleanFailed=true; // } // return; // } try {sourceNode.buffer=WebAudioSound._min...

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

435. dialog黑色遮罩删除不了 [ 49%]

...eckMask和removeSelf的顺序反了,自己改下,laya.ui.js      __proto.doClose=function(dialog){         var isModalTmp = dialog.isModal;         // dialog.isModal && this._checkMask();         dialog.closeHandler && dialog.closeHandler.runWith(dialog.closeT...

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

436. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 49%]

...ID     *@param name 属性名称     *@return     */     __proto.getTileProperties=function(index,id,name){         if (this._tileProperties[index] && this._tileProperties[index][id]){             return this._tileProperties[index][id][name];       ...

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

437. 为什么ani动效放到舞台没问题,放到场景就报错 [ 49%]

...s:25407 Uncaught Error: Sprite3D:Node type must Sprite3D.     at Scene.__proto.addChild (laya.d3.js:25407) 附件 : --> 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 haiboannacom 赞同来自: 第一...

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

438. 源码List的一次代码错误 [ 49%]

...利用删除的item,但是看定义arr上面定义的是局部变量。__proto._createItems = function (startY, numX, numY) { var box = this._content; var cell = this._getOneCell(); var cellWidth = cell.width + this._spaceX; var cellHeight = cell.height + this._spaceY; if (this.cacheContent) { var...

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

439. 物体每帧y方向移动,超出屏幕高度消失,可还没有超出屏幕高度就提前消失了! [ 49%]

.../-----------上面和下面的代码在两个不同的页面------------- _proto.run = function () { this.speed = 1; Laya.timer.frameLoop(1, this, () => { console.log(this.obstacle0.y, Laya.Browser.height); //this.obstacle0是一个精灵对象 this.obstacle0.y += this.speed; if (this.obstacle0.y...

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

440. AS转换JS运行报错 [ 49%]

...调用DoFunc报错 我现在得到结论 KeyHandler中的this不能指代__proto对象 要使this指代过去,我记得参数中要加个参数才对,麻烦看下是不是转换问题,还是有这种写法   附件 : --> 2017-01-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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