大约有 293 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
Laya_社区(77) Laya3.0_api(71) Laya2.0_api(57) laya_api(53) Laya2.0_文档(13) Laya2.0_示例(8) Laya3.0_文档(7) Laya_示例(7)
...id{ // xuanzhuan.pivot(xuanzhuan.width/2,xuanzhuan.height/2); Laya.timer.frameLoop(1,this,onLoopRotation,[this.xuanzhuan]); } private function onLoopRotation(sp:Sprite):void { ...
来源: Laya_社区 发布时间: 20171225
...获取Html文本的实际内容、获取html文本的实际宽高(contextWidth、contextHeight) 示例如下:var htmlDiv:HTMLDivElement=new HTMLDivElement(); var html:String = "<span color='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDiv...
来源: Laya_社区 发布时间: 20161027
...is.addLabel.graphics.drawRect(0, 730, 1440, 170, "#000000"); this.addLabel.width = 1440; this.addLabel.height = 170; this.addLabel.alpha = 0.6; this.addLabel.mousethrough = false; this.addLabel.mouseEnabled = true; 已经手动设置了,也是没有效果! 2017-07-26 0 1 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170726
...tatic tempTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; } if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(system.width, system.height); } if (!this.tempTexture) { this.tempTexture = new Laya.T...
来源: Laya_社区 发布时间: 20191016
...透明度无效? Sprite对象使用graphics画圆,然后获取Sprite的width,height属性,居然还是0,晕,这正常??? 还有啊,graphics.alpha(0.5)设置图形透明度无效哦。怎么回事? 查看了api是这样的啊。。 2016-10-26 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20161026
...ring); //_webframe.setAttribute('frameborder', 0); _webframe.setAttribute('width', "100%"); _webframe.setAttribute('height', "100%"); //_webframe.setAttribute('align', "middle"); _webframe.setAttribute('scrolling', "no"); _webframe.setAttribute('position', "absolute"); _webframe.setAttribute('style'...
来源: Laya_社区 发布时间: 20180103
...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mou...
来源: laya_api 发布时间: 20170929
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...
来源: Laya2.0_api 发布时间: 20190513
...ad-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-on...
来源: Laya2.0_api 发布时间: 20190513
fixedwidth模式,横屏在有些机型,屏幕下方无法相应点击事件 鼠标点击的位置: 1520 744 屏幕舞台的高: 1624 914 在 iphone6sp 这样的机型下,屏幕舞台高超过了750,下方区域就不能响应鼠标点击事件了, 目前是 GameConfig.width = 1624...
来源: Laya_社区 发布时间: 20200425