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

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

761. 源码List的一次代码错误 [ 50%]

...ntent) { var cacheBox = new Box(); cacheBox.cacheAsBitmap = true; cacheBox.pos((this._isVertical ? 0 : startY) * cellWidth, (this._isVertical ? startY : 0) * cellHeight); this._content.addChild(cacheBox); this._content.optimizeScrollRect = true; box = cacheBox; } else { [b] var arr = []; [/b] for (v...

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

762. laya.html.dom.HTMLDivElement_API3.0 [ 50%]

...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex setSelfBounds set_height set_scaleX set_scaleY set_transform set_...

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

763. async函数没有用catch时抛出的异常没有触发window.onunhandledprojection [ 50%]

..., 修改stage的scale后,会发生异常情况 Text类中竟然没有pos函数的api~ safari浏览器 图片异常 问题状态 最新活动: 2022-01-07 18:01 浏览: 7612 关注: 3 人 devyding • 2021-10-14 11:26 弱弱问一下,下个版本大概啥时候出?有没有可能给个临时...

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

764. 获取sprite对象的 width和height为0 [ 50%]

...ounds(); console.log(bgBound.width/2) console.log(bgBound.height - 150) bt.pos(bgBound.width/2 - btBound.width/2,bgBound.height - 150) } } //启动游戏 new Game();打印结果: 0 -150 bgBound.width 和 bgBound.heigt 都为0  2016-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

765. skin加载url资源不会刷新 [ 50%]

...0, 0);             Laya.stage.addChild(ape);             ape.pos(0, 0);         }));     业务: 图片服务器会修改上传新的图片,图片的文件名不变 流程: 我清理了一边缓存,确认了缓存里没有资源情况下重新向url获取请求 得到的...

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

766. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 50%]

..., r, "#ff0000");//画一个圆形的遮罩区域              cMask.pos(this.x+r, this.y+r);              this.mask = cMask; //不加这一行图片正常显示,但是方图              //Laya.stage.addChild(cMask); //测试了坐标区域,完全正确正好在图像上 }))...

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

767. 求问sprite放大后,graphics绘制的图像位置偏移 [ 50%]

...x: number = 300; let y: number = 100; let scaleRatio: number = 1.3; sprite.pos(x, y); // sprite.graphics.drawCircle(texture.width/2, texture.height/2, 10, "#fff333"); //位置偏移 sprite.graphics.drawCircle(texture.width/2 - x/scaleRatio, texture.height/2 - y/scaleRatio, 10, "#fff333"); //位置...

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

768. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 50%]

....height; //添加2D精灵, this.owner.addChild(this.spRole); this.spRole.pos(0, 0); this.spRole.size(Laya.stage.width, Laya.stage.height); }); 2025-01-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 焰 相...

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

769. 如何从代码中创建UI,progressbar [ 50%]

...ar=new ProgressBar(); progressBar.skin="commonUI/anniu05a.png" progressBar.pos(100,100); progressBar.value=0.5; Laya.stage.addChild(progressBar); 后台: Failed to load resource: net::ERR_FILE_NOT_FOUND(FILE///..../bin/commonUI/anniu05a$bar.png) [warn]Retry to load:/......./bin/commonUI/anniu05a$b...

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

770. 新人求教!!! [ 50%]

...g.on("click",this,this.switchImg);    //设置图片坐标    this.img.pos(100,50); } private switchImg():void{   //清空绘制   this.img.graphics.clear();   //获得要切换的图片资源路径   var imgUrl:String = (this.flag = !this.flag)? this.monkey2:this.monkey1;   //获取图片...

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