大约有 316 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0127 秒)
Laya_社区(127) Laya3.0_api(85) Laya2.0_api(49) laya_api(19) Laya2.0_文档(15) Laya3.0_文档(13) Laya2.0_示例(4) Laya_示例(4)
... = 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
...试代码: var text:TextInput=new TextInput(); text.wordWrap=true; text.width=200; text.height=200; text.text="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" + "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" + "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
来源: Laya_社区 发布时间: 20170616
...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
...; _txt.wordWrap=true; _txt.width=300; _txt.height=_txt.textHeight+10; _txt.y=60; Laya.stage.addChild(_txt); 用的字体是外加载的隶书字体 然后在电脑上显示就非...
来源: Laya_社区 发布时间: 20180131
...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component editable : Boolean 设置可编辑状态。 TextInput filters : Array滤镜集合。可以设置多个滤镜组合。Sprite focus : Boole...
来源: laya_api 发布时间: 20170929
scaleMode bug SCALE_FIXED_WIDTH,理论上舞台高度应该变化啊,为啥舞台高度还是设计高度。但是内容的y轴按设计高度来,就不行。。 2018-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20180316
... 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
...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
...* @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
... 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