大约有 698 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0167 秒)
Laya_社区(336) Laya3.0_api(89) Laya2.0_api(69) Laya2.0_文档(65) laya_api(61) Laya3.0_文档(44) Laya2.0_示例(19) Laya_示例(15)
...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
...; graphic.drawLine(words[0].x,firstlineY,words[slsIndex].x+words[slsIndex].width,firstlineY,color,1); let secondLineY = words[slsIndex+1].y + words[slsIndex+1].height; graphic.drawLine(words[slsIndex+1].x,secondLineY,lastWords.x+lastWords.width,secondLineY,color,1); }else{ graphic.drawLine(words[0]....
来源: Laya_社区 发布时间: 20190611
... TiledMap gridHeight : Number[read-only] 块的高度 TiledMap gridWidth : Number[read-only] 块的宽度 TiledMap height : int[read-only] 地图的高度 TiledMap numColumnsGrid : Number[read-only] 地图的横向块数 TiledMap numColumnsTile : int[read-only] 地图横向的格子...
来源: laya_api 发布时间: 20170929
... TiledMap gridHeight : Number[read-only] 块的高度 TiledMap gridWidth : Number[read-only] 块的宽度 TiledMap height : int[read-only] 地图的高度 TiledMap numColumnsGrid : Number[read-only] 地图的横向块数 TiledMap numColumnsTile : int[read-only] 地图横向的格子...
来源: Laya2.0_api 发布时间: 20190513
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite editable : Boolean 是否可编辑。 Input filters : Array滤镜集合。可以设置多个滤镜组合...
来源: Laya2.0_api 发布时间: 20190513
...ete() { pBar = new ProgressBar(AssetsDir+"./assets/progressBar.png"); pBar.width = Laya.stage.width/2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后,构造progressBar的脚本。 总是在这里出现错...
来源: Laya_社区 发布时间: 20180316
...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...
来源: laya_api 发布时间: 20170929
...ee.xml = new Laya.XML(treeData); tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selec...
来源: Laya3.0_文档 发布时间: 20251010
...自: 你在代码中添加这个UI页面的时候就让它的x=(Laya.sta.width-this.width)/2自己计算下不就好么 2018-03-23 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 kaiqiw945 相关问题 【屏幕适配】在LayaAir上面...
来源: Laya_社区 发布时间: 20180323
...private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private function startFun(): void { this.templet = new SpineTempletBinary(); this.temp...
来源: Laya2.0_文档 发布时间: 20210715