大约有 633 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0041 秒)
Laya_社区(319) Laya2.0_示例(114) Laya_示例(88) Laya2.0_文档(50) laya_api(18) Laya3.0_文档(17) Laya2.0_api(16) Laya3.0_api(11)
...txt.width = 400; txt.height = 400; //设置文本水平居中 txt.align = "center"; //设置文本垂直居中 txt.valign = "middle"; Laya.stage.addChild(txt); } } } ``` ![5](img/5.png) 在实际编码中如果需要其他的对齐模式,请参考API中的align和valign的取值,找到适合项...
来源: Laya2.0_文档 发布时间: 20210715
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya....
来源: Laya2.0_示例 发布时间: 20241118
...一个像素的空白 Laya.init(1280,720,Laya.WebGL); Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = "horizontal"; 在iphone手机屏幕右测有一个像素的空白,可能是计算画布大小时有小数点的原因,使画...
来源: Laya_社区 发布时间: 20180709
... customer support responses - Providing misleading responses in Resolution Center - Engaging in misleading purchasing or bait-and-switch schemes - Engaging in other dishonest or fraudulent activity within or outside of the app During our investigation, we will not review any apps you submit. Please ...
来源: Laya_社区 发布时间: 20191108
... sphereCollider = sphere.addComponent(Laya.SphereCollider); sphereCollider.center = sphere.meshFilter.sharedMesh.boundingSphere.center.clone(); sphereCollider.radius = sphere.meshFilter.sharedMesh.boundingSphere.radius; sphere.name = "球体"; //圆柱体 var cylinder = scene.addChild(new Laya.MeshS...
来源: Laya_示例 发布时间: 20241118
...发更高效。Laya.init(600, 400); Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#FFFFFF"; this.form = new Laya.Sprite(); this.for...
来源: Laya_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { initMatter(); initWorld(); Laya.stage.on("resize", this, onResize); } function initMatter() { var gameWorld = new Spr...
来源: Laya_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createSprite(); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } fu...
来源: Laya_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Laya.Handler.create(this, this.ShowContent)); } ShowContent() { const FontClip = Laya.FontClip; var clipnum= new Fon...
来源: Laya2.0_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#fff"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.h...
来源: Laya2.0_示例 发布时间: 20241118