大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...h.max( this._blood_area.w, this._demon_area.w, this._doll_area.w ); this.height = this._blood_area.h + this._demon_area.h + this._doll_area.h; this.graphics.drawRect( 0, 0, this.width, this.height, null, "#ff0000", 1); if( ! DollGunRole._ani_cached ) { DollGunRole._ani_cached = true; Laya.Anim...
来源: Laya_社区 发布时间: 20180515
...onAwake(): void { this.txtarea.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtarea.size(500, 200); //大小 this.txtarea.pivot(this.txtarea.width/2, this.txtarea.height/2); //轴心点 this.txtarea.text = "大家好,欢迎各位开发者使用LayaAir IDE,这里...
来源: Laya3.0_文档 发布时间: 20251010
...ter.atlas"; //初始化引擎 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"; this.init(); //显示性能统计信息 Stat.show(); } /** * ...
来源: Laya_示例 发布时间: 20251209
... 绿色框的坐标 -- 舞台中央坐标(Laya.stage.width*.5,Laya.stage.height*.5) localSp:黑框容器对象 直接带入上面方法即可,中央的坐标你只知道相对于绿色框的坐标,则需要转换一下,很简单: globalPoint = greenBox.localToGlobal(new Laya.Point(x,y));...
来源: Laya_社区 发布时间: 20180502
...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY autoPlay blendMode bottom cacheAs centerX centerY clipHeight clipWidth clipX clipY components customRenderEnable dataSource destroyed direction disabl...
来源: Laya3.0_api 发布时间: 20231115
...var bounds = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); console.log(ani.index); Laya.stage.addChild(ani); console.log(ani.index); } json代码如下 {"frames": [ { "filename": "walk_01.png", "frame...
来源: Laya_社区 发布时间: 20160712
... ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.stage.height // let singleX = (Laya.Browser.width - clientWidth)/2; // let singleY = (Laya.Browser.hei...
来源: Laya_社区 发布时间: 20180201
...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 表示显示对象的高度,以像素为单位。 高度默认为0,可以手动设置,或者通过getbounds获取实际宽度。设置此高度只用来做鼠标碰撞使用,改变后并不影响显示...
来源: laya_api 发布时间: 20170422
...成true sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addChild(sprite); }); 2018-11-23 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 阿噗 赞同来自: if(Browser....
来源: Laya_社区 发布时间: 20181123
...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite emitter : Emitt...
来源: Laya2.0_api 发布时间: 20190513