大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...nit(640, 1136); let testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clea...
来源: Laya_社区 发布时间: 20200421
...本中心,这样写,text.pivotX=text.width>>1; text.pivotY=text.height>>1; 然后将文本置于屏幕中心,理论上应该文本框居中 但结果是这样 附件 : --> 2016-06-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20160617
...bone/spineboy-pma.skel"; this.index = -1; Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } startFun() { this.templet = new SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPa...
来源: Laya2.0_示例 发布时间: 20251209
....context; var world = {minX: -globalWidth, maxX: globalWidth, minY: -globalHeight, maxY: globalWidth}; context.setTransform(1,0,0,1,0,0); context.clearRect(0, 0, canvas.width, canvas.height); //Clamp the camera position to the world bounds while centering the camera around the car var camX = clamp(-...
来源: Laya_社区 发布时间: 20170728
...割每个切片的宽度 clipWidth、竖向分割每个切片的高度 clipHeight,从左向右,从上到下,分割组合为一个切片动画。 Clip 组件可以用来播放切片动画,和显示切片动画的某一帧图片。 点击资源面板里的 Clip 组件,拖放到页面...
来源: Laya2.0_文档 发布时间: 20210715
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load([texture1, texture2], Handler.create(this, onA...
来源: Laya_示例 发布时间: 20251209
...Viewport 类用于创建视口。 Public Properties PropertyDefined By height : Number高度Viewport maxDepth : Number最大深度Viewport minDepth : Number最小深度Viewport width : Number宽度Viewport x : NumberX轴坐标Viewport y : NumberY轴坐标ViewportPublic Methods M...
来源: Laya2.0_api 发布时间: 20190513
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createApes(); } createApes() { const Sprite = La...
来源: Laya2.0_示例 发布时间: 20251209
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createSprtie(); drawTrack(); ...
来源: Laya_示例 发布时间: 20251209
... this._map.viewPortWidth || this.y < 0 || this.y > this._map.viewPortHeight) { this.hide(); } else { this.show(); } } else { ...
来源: Laya_社区 发布时间: 20220627