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

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

91. Animation设置pivot导致动画模糊问题 [ 80%]

...明显变模糊,如: this.animation.pivot(this.animation.getBounds().width / 2,this.animation.getBounds().height / 2); 如果this.animation.getBounds().width / 2为非整数,动画就会变模糊,像下面带有小数点就会模糊 this.animation.pivot(100.5,100.5); 发现带小数点的...

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

92. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 80%]

...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private cl...

来源: Laya2.0_文档 发布时间: 20210715

93. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 80%]

...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){...

来源: Laya2.0_文档 发布时间: 20210714

94. 微信小游戏最小化以后,引擎库里面_parseLines报错 [ 80%]

...estWord);             }             this._charSize.width=measureResult.width;             this._charSize.height=(measureResult.height || this.fontSize); 这些会挂,  用的laya2.0 正式版 附件 : --> 2019-04-25 添加评论 免费帖 --> 分享 微博 QZON...

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

95. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 79%]

...gressBar("../../../../res/ui/progressBar.png"); //设置宽度 progressBar.width = 400; //设置显示位置,在舞台居中 progressBar.x = (Laya.stage.width - progressBar.width ) / 2; progressBar.y = Laya.stage.height / 2; //设置九宫格边距,以防变形 progressBar.sizeGrid = "5,5,5,5"; ...

来源: Laya2.0_文档 发布时间: 20210715

96. 性能测试-骨骼 [ 79%]

... mAnimationArray = []; var mFactory; function init() { mSpacingX = Browser.width / colCount; mSpacingY = Browser.height / rowCount; Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); mTexturePath = "../../res/skeleton/" + fileName + "/" + fileName + ".png"; mAniPath = "../../res/skeleton/...

来源: Laya_示例 发布时间: 20261113

97. 在 tiledmap 插入一个精灵在上面 [ 79%]

...this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height),   Laya.Handler.create(this,this.loadedMap)); }   loadedMap(){   this.sp=new Laya.Sprite();   this.sp.graphics.drawRect(0,0,100,100,"#FF0000");   var mapLayer = this.tiledMap.getLayerByIndex(1);...

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

98. 文本-字数限制 [ 79%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createInput(); })(); function cr...

来源: Laya_示例 发布时间: 20261113

99. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 79%]

.../monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); ``` loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 1. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png",Hand...

来源: Laya2.0_文档 发布时间: 20210715

100. 性能测试-骨骼 [ 79%]

...= Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); mSpacingX = Browser.width...

来源: Laya2.0_示例 发布时间: 20261113