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

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

221. localToGlobal坐标转换 [ 65%]

... = this._toolbar.btn_mian_recruit.localToGlobal(new Point(btn_mian_recruit.width/2,btn_mian_recruit.height/2)); 因你就是拿btn_mian_recruit去转坐标的,所以不能再把位置设置成btn_mian_recruit本身的位置了。谢谢您的反馈,有什么问题再联系 2016-08-01 2 0 分...

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

222. TextInput TextArea 获取当前有多少行? [ 65%]

...试代码: var text:TextInput=new TextInput(); text.wordWrap=true; text.width=200; text.height=200; text.text="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" + "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" + "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...

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

223. 在 tiledmap 插入一个精灵在上面 [ 65%]

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

224. 文字显示模糊 [ 65%]

...;             _txt.wordWrap=true;             _txt.width=300;             _txt.height=_txt.textHeight+10;             _txt.y=60;             Laya.stage.addChild(_txt); 用的字体是外加载的隶书字体 然后在电脑上显示就非...

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

225. laya.ui.TextArea [ 65%]

...d-only] 对象的显示高度(以像素单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Component editable : Boolean 设置可编辑状态。 TextInput filters : Array滤镜集合。可以设置多个滤镜组合。Sprite focus : Boole...

来源: laya_api 发布时间: 20170929

226. scaleMode bug [ 65%]

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

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

227. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 64%]

... Laya.Stat;   // 不支持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";   this.loadFont(); }   loadFon...

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

228. Layabox web 复制一段文字到剪贴板 [ 64%]

...position = "absolute"; this.newMask.style.zIndex = "1"; this.newMask.style.width = "100%"; this.newMask.style.height = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight) + 100 + "px"; this.newMask.style.top = "0px"; this.newMask.style.left = "0px"; this.newMask.style.backgro...

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

229. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 64%]

...* @en Draws the current object to a RenderTexture2D object. * @param canvasWidth The width of the canvas. * @param canvasHeight The height of the canvas. * @param offsetX The X-axis offset for drawing. * @param offsetY The Y-axis offset for drawing. * @param rt The render target. * @param isDrawRend...

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

230. Laya多点触控是有开关吗 什么多点触控没有任何反应 [ 64%]

...  this.text = new Laya.Text();         this.text.x = Laya.stage.width / 2 -50 ;         this.text.text = "触控点归零";         //显示文本显示框         this.text = new Laya.Text();         this.text.name = "ceshi";         this.text.overf...

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