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

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

931. 列表嵌套另外一个列表 [ 64%]

...text显示状态 if (own){ if(HostData.array[index].lock){ own.visible = false; }else{ own.visible = true; } } var lock :Button = cell.getChildByName("lock") as Button; if(lock){ lock.visible = HostData.array[index].lock;//默认角色购买锁定状态赋值 lock.disabled =HostData.array[...

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

932. ToolTip鼠标悬停的使用 [ 64%]

....skin="comp/button.png"; button2.toolTip=Handler.create(this,showTips,null,false); //携带参数的自定义鼠标提示 var button3:Button=new Button(); Laya.stage.addChild(button3); button3.label="button Three"; button3.pos(400,100); button3.skin="comp/button.png"; button3.toolTip=Handler.create(...

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

933. 修改了Scene下的WebGL参数导致渲染3D对象出现局部透明 [ 64%]

...ionAttribute, this.vertexPositionBuffer.itemSize, Laya.WebGLContext.FLOAT, false, 0, 0 ); this.gl.bindBuffer(Laya.WebGLContext.ARRAY_BUFFER, this.textureCoordBuffer); // Check the current orientation of the device combined with the // orientation of the VRSeeThroughCamera to determine the correct UV...

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

934. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 64%]

...tage.width / 2; ufo.y = Laya.stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf();   } });  })); ...

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

935. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 64%]

...。   export default class MapSprite extends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); }  loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x = posX; //这里是256*整数倍的叠加 每张...

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

936. box2d引擎报错问题 [ 64%]

...(this._sp.x, this._sp.y); this._sp.parent.addChild(effect); effect.play(0, false); this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } } createEffect(): Laya.Animation { let ani: Laya.Animation = new Laya.Animation(); ani.loadAnimation("catFly.ani"); ani.on(Laya.Event.COMPLETE, null, ...

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

937. laya.net.URL [ 64%]

...ormat = function(url:String):String{} URL  exportSceneToJson : Boolean = false[static] 兼容微信不支持加载scene后缀场景,设置为true,则会把scene加载替换为jsonURL  path : String[read-only] 地址的文件夹路径(不包括文件名)。URL  rootPath : String[static]...

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

938. oppo CanvasRenderingContext2D 并没有实现 drawImage;报错; [ 64%]

...premultiplyAlpha){ (premultiplyAlpha===void 0)&& (premultiplyAlpha=false); var width=source.width; var height=source.height; this._width=width; this._height=height; this._setWarpMode(/*laya.webgl.WebGLContext.TEXTURE_WRAP_S*/0x2802,this._wrapModeU); this._setWarpMode(/*laya.webgl.WebGLContex...

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

939. 内存释放问题 [ 64%]

...aya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {string[]} resAltlasName * @param {*} classFullName * * @memberof ResourcesModuleManager */ static showModuleAnd...

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

940. 两个问题都关于LayaAir的ios真机 [ 64%]

...ent 对象。 */ protected function onMouse(e:Event):void { if (toggle === false && _selected) return; if(e.type==Event.MOUSE_DOWN){ QuickUtils.addDark(this,true); }else{ QuickUtils.addDark(this,false); } if (e.type === Event.CLICK) { toggle && (selected = !_selected); _clickHandler ...

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