大约有 683 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0062 秒)
Laya_社区(327) Laya3.0_api(89) Laya2.0_api(69) Laya2.0_文档(65) laya_api(61) Laya3.0_文档(38) Laya2.0_示例(19) Laya_示例(15)
...; 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
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite frames : Array 当前动画的帧...
来源: Laya2.0_api 发布时间: 20190513
...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
...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
...自: 你在代码中添加这个UI页面的时候就让它的x=(Laya.sta.width-this.width)/2自己计算下不就好么 2018-03-23 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 kaiqiw945 相关问题 【屏幕适配】在LayaAir上面...
来源: Laya_社区 发布时间: 20180323
... 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
... "#D2691E"); rect.size(200, 200); rect.pivot(100,100); rect.x = Laya.stage.width /2; rect.y = Laya.stage.height / 2; // let hitArea = new Laya.Rectangle(rect.x-100,rect.y-100,200,200); // rect.hitArea = hitArea; Laya.stage.addChild(rect); //增加鼠标事件 rect.on(Event.MOUSE_DOWN, this, mouseHan...
来源: Laya_社区 发布时间: 20180205
...Index = 0; var mFactory2; var mLabelSprite; (function(){ Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFacto...
来源: Laya_示例 发布时间: 20240930
...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...
来源: laya_api 发布时间: 20170929