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

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

661. getimagedata直接调用无法获取有效像素问题 [ 38%]

...y,width,height); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawTexture(this,-x,-y,this.width,this.height,0,0); var info=Browser.context.getImageData(0,0,width,height); } return info.data; }上面是 getpixels 的实现, 问题1: 为什么直接调用 Brow...

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

662. laya.ui.AutoBitmap [ 38%]

...ethodDefined By alpha(alpha:Number):AlphaCmd 设置透明度。 Graphics clear(recoverCmds:Boolean = true):void 清空绘制命令。 Graphics clipRect(x:Number, y:Number, width:Number, height:Number):ClipRectCmd 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics  destroy():v...

来源: Laya2.0_api 发布时间: 20190513

663. laya.utils.Byte [ 37%]

...efined By  Byte(data:* = null) 创建一个 Byte 类的实例。 Byte  clear():void 清除字节数组的内容,并将 length 和 pos 属性重置为 0。调用此方法将释放 Byte 实例占用的内存。 Byte  getSystemEndian():String[static] 获取当前主机的字节序。 主机字...

来源: Laya2.0_api 发布时间: 20190513

664. layacmd在centOS 6.5上运行出错 [ 37%]

...ools/LayaAirCmdTool.max.js', '/data/ebuild/gongdou/gongdouH5/laya/.laya', 'clear=true', 'releasemode=normal', 'exportUICode=true', 'exportRes=true' ] type: Linux appPath: /data/tools/node-v8.9.0-linux-x64/lib/node_modules/layacmd/ProjectExportTools/ openProject: /data/ebuild/gongdou/gongdouH5/laya/....

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

665. 引擎 TiledMap 居然不支持图块翻转 [ 37%]

...Y;                 }             }         }         clearAll () {             if (this._map) {                 this._map = null;             }             this.visible = false;             var tAniSprite;             if (this.aniSpriteArra...

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

666. laya.utils.Byte [ 37%]

...efined By  Byte(data:* = null) 创建一个 Byte 类的实例。 Byte  clear():void 清除字节数组的内容,并将 length 和 pos 属性重置为 0。调用此方法将释放 Byte 实例占用的内存。 Byte  ensureWrite(lengthToEnsure:int):void 保证该字节流的可用长度不小...

来源: laya_api 发布时间: 20170929

667. Shader预编译解决方案 [ 37%]

...3D._compileDefineDatas;                 compileDefineDatas.clear();                 for (var i = 0, n = defineNames.length; i < n; i++)                     //将宏定义名称转换为  Laya.DefineDatas               ...

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

668. laya.display.AnimationBase_API3.0 [ 36%]

...dChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents ...

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

669. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 36%]

...   _proto.setGradientText = function () {             this.graphics.clear();             let data = '';             data += 'data:image/svg+xml,' + '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" ';             data += 'vi...

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

670. 为什么会出现报错 ani not found:ufo1_down [ 35%]

...果主角死亡,停止游戏循环 if(this.hero.hp < 1){ Laya.timer.clear(this,onLoop); } // 每隔30帧创建新的敌机 if(Laya.timer.currFrame%60 === 0){ createEnemy(2); } } function lostHp(role,lostHp){ // 减血 role.hp -= lostHp; if(role.heroType === 2){ // 每吃一个子弹升级道具...

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