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

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

341. TiledMap制作横板地图 报错 [ 60%]

... this.map.createMap("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");调试显示relativePath为undefined。 稍微跟踪了下,是14...

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

342. scaleMode bug [ 60%]

scaleMode bug SCALE_FIXED_WIDTH,理论上舞台高度应该变化啊,为啥舞台高度还是设计高度。但是内容的y轴按设计高度来,就不行。。 2018-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

343. 怎么获取手机相册内容 [ 60%]

...put"); //设置file的样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="file";//设置类型是file类型。 file.accept="image/png";//设置文件的格式为png; file.style.position ="absolute"; file.style.zIndex = 999; Browser.document.body.appendChild...

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

344. drawTexture 画出来的数据会有以前的数据 [ 60%]

...lhjicon_5.png"); img.x = 640; img.y = 320; iconSpr = new Sprite(); iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.t...

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

345. laya.ui.ProgressBar_API3.0 [ 60%]

... progressBar.value = 0.3;//设置 progressBar 的进度值。 progressBar.width = 200;//设置 progressBar 的宽度。 progressBar.height = 50;//设置 progressBar 的高度。 progressBar.sizeGrid = "5,10,5,10";//设置 progressBar 的网格信息。 progressBar.changeHandler = new Handler(this, o...

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

346. drawToCanvas内存泄漏 [ 60%]

...加了    let htmlC: HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0);         if (htmlC) {             htmlC.toBase64("image/jpeg", 0.3, (base64) => {                 htmlC.releaseResource(true);          ...

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

347. List 渲染后无法自适应宽高吗? [ 60%]

...,能获取到宽高的值吗 cuixueying • 2017-08-31 16:35 你直接用width、height或者getBounds获取不到吗?

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

348. 相对屏幕坐标 [ 60%]

...功、 189*****192 • 2017-05-04 15:16 @cuixueying: Gamelog("dialog1.width*i=="+(movePath[0].localToGlobal(new Point(movePath[0].x,movePath[0].y)).x-movePath[0].x)); 我这可以 目前是x轴坐标 cuixueying • 2017-05-04 15:55 你试下 (显示对象.parent).localToGlobal。。。...

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

349. Laya.Tween.to 用这个做缓动动效, 变动scale值有问题, [ 59%]

...模糊处理 Image 设置 scale 之后属性不对 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 2.0模型改变scale到一定值后网格碰撞器失效问题 问题状态 最新活动: 2018-03-15 18:16 浏览: 2431 关注: 2 人 zkang5 • 2018-03-15 18:44 ...

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

350. 如何获取图片每个像素点的RGB? [ 59%]

...~ let my_canvas: HTMLCanvas = the_sprite.drawToCanvas(Game_Parameter.game_width, Game_Parameter.game_height, 0, 0); //把精灵绘制到canvas上面let my_texture: Texture = new Texture(my_canvas); //使用htmlCanvas创建Texture let pixels = my_texture.getPixels(700, 8, 10, 1); //得到像素点  ...

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