• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 633 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0041 秒)

181. 文本对齐与自动换行(ActionScript-LayaAir基础篇(AS3)-文本) [ 72%]

...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

182. 区块地图-等角地图 [ 72%]

...); 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

183. 手机全屏游戏,屏幕右侧会有一个像素的空白 [ 72%]

...一个像素的空白 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

184. 苹果上架直接导致账号被调查。。。 [ 71%]

... 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

185. 射线检测-选取物体 [ 71%]

... 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

186. DOM元素-表单输入 [ 71%]

...发更高效。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

187. 物理引擎-牛顿摆 [ 71%]

...); 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

188. 鼠标交互-双指旋转(多点触控) [ 71%]

...); 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

189. UI-FontClip [ 70%]

...); 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

190. DOM元素-表单输入 [ 70%]

...); 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