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

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

411. 请问更新遮罩的最优方式 [ 68%]

...,需要遮罩宽度随着进度变化而变化   _mask.size(_barImage.width * _percent, _barImage.height); _mask.graphics.clear(); _mask.graphics.drawRect(0, 0, _mask.width, _mask.height, "#FF0000");                      _barImage.mask = null; _barImage.mask = _mask;   试过需...

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

412. 如何根据内容计算 Label的高度 [ 68%]

... cuixueying 赞同来自: 问题1、   label的宽高可以直接通过.width和.height获取,尺寸会跟随字符的多少变化而变化,是自动调整的,无需开发者去计算 问题2、   htmlDivElement的文本宽高,默认的宽高200,,200,如果已经设置过htmlDivElem...

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

413. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 68%]

...area.w; this._doll_area.h = doll_area.h; }  // 设置容器的宽高 this.width = Math.max( this._blood_area.w, this._demon_area.w, this._doll_area.w );  this.height = this._blood_area.h + this._demon_area.h + this._doll_area.h;  this.graphics.drawRect( 0, 0, this.width, this.height, null, "#ff00...

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

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

...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

415. 关于富文本的显示宽度与自动换行 [ 67%]

...是需要改html哪里的宽度呢 wxj56406542 • 2018-05-11 14:04 设置Width 结对单位 别用相对单位 再设置wordwrapfalse 就不会换行了

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

416. Button位移过后,点击区域改变 [ 67%]

...先描述一下现象:Laya.stage根据外部浏览器的大小而变化width和height,stage里面有个sprite,sprite里面有个Button,Button时刻保持在右上角。因忘了设置sprite的width和height,导致按钮有时移出sprite 的范围而失去焦点,只要同时把sprite...

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

417. laya.map.TiledMap_API3.0 [ 67%]

..._LEFTUP RENDERORDER_RIGHTDOWN RENDERORDER_RIGHTUP Accessors gridHeight gridWidth height numColumnsGrid numColumnsTile numRowsGrid numRowsTile orientation renderOrder scale tileHeight tileWidth width x y Methods changeViewPort changeViewPortBySize createMap destroy getLayerByIndex getLayerByName getL...

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

418. 文本内容太长显示不全 [ 67%]

....core.js中的CharRender_Canvas这个类里面的 CharRender_Canvas.canvas.width属性,把width改成4096看看

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

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

...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

420. 打包APP后,Lable的宽高有所变化,请问如何修正? [ 67%]

...:Label = new Label(); demoLable2.text = "上个Lable的宽: " + demoLable1.width + ", 高: " + demoLable1.height; demoLable2.fontSize = 50; demoLable2.bgColor = "#0FF"; demo.addChild(demoLable2.pos(0,50)); } 附件 : --> 2018-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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