大约有 130 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0079 秒)
...示例: let sprite = new Laya.Sprite(); // 加载并显示一个图片,居中显示 sprite.loadImage("atlas/comp/image.png", null); sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 添加到舞台 Laya.stage.addChild(sprite); 3.2.2 set texture /** * 设置一个Texture...
来源: Laya3.0_文档 发布时间: 20251010
...地板上面出现最多的是星星 2、所有物品在地板上面 需要居中显示 3、物品需要有碰撞检测 上一节我们有讲到 Floor 这个类的作用 它主要就是一个块地板 而游戏刚开始的时候 我们会创建一个普通地板 宽度是素材的正常宽度 那...
来源: Laya_社区 发布时间: 20160803
...dePublic Constants ConstantDefined By CENTER : String = center[static] 居中对齐。 VBox LEFT : String = left[static] 左对齐。 VBox NONE : String = none[static] 无对齐。 VBox RIGHT : String = right[static] 右对齐。 VBoxProperty Detailwidthpropertywidth:Number[override] Im...
来源: laya_api 发布时间: 20170929
...bottom[static] 居底部对齐。 HBox MIDDLE : String = middle[static] 居中对齐。 HBox NONE : String = none[static] 无对齐。 HBox TOP : String = top[static] 居顶部对齐。 HBoxProperty Detailheightpropertyheight:Number[override] Implementation public function get heigh...
来源: laya_api 发布时间: 20170929
...dePublic Constants ConstantDefined By CENTER : String = center[static] 居中对齐。 VBox LEFT : String = left[static] 左对齐。 VBox NONE : String = none[static] 无对齐。 VBox RIGHT : String = right[static] 右对齐。 VBoxProperty Detailwidthpropertywidth:Number[override] Im...
来源: Laya2.0_api 发布时间: 20190513
...bottom[static] 居底部对齐。 HBox MIDDLE : String = middle[static] 居中对齐。 HBox NONE : String = none[static] 无对齐。 HBox TOP : String = top[static] 居顶部对齐。 HBoxProperty Detailheightpropertyheight:Number[override] Implementation public function get heigh...
来源: Laya2.0_api 发布时间: 20190513
...lob([uint8Array], { type: 'image/png' })); img.centerX = 0; // 设置图片居中显示 // 将图片添加到舞台显示 Laya.stage.addChild(img); } else { console.log("收到数据:", message); } } private onConnectError(): void { console.log("Connection Error"); } } 运行效果如图3-1所示。...
来源: Laya3.0_文档 发布时间: 20251010
...prite popupCenter : Boolean = true 一个布尔值,指定对话框是否居中弹。 如果值为true,则居中弹出,否则,则根据对象坐标显示,默认为true。 Dialog popupEffect : Handler 弹出对话框效果,可以设置一个效果代替默认的弹出效果,如果不...
来源: laya_api 发布时间: 20170929
...签 Static CENTER CENTER: string = "center" Defined in laya/ui/VBox.ts:19 居中对齐。 Static LEFT LEFT: string = "left" Defined in laya/ui/VBox.ts:15 左对齐。 Static NONE NONE: string = "none" Defined in laya/ui/VBox.ts:11 无对齐。 Static RIGHT RIGHT: string = "right" Defined in laya/ui/...
来源: Laya3.0_api 发布时间: 20231115
...。 Static MIDDLE MIDDLE: string = "middle" Defined in laya/ui/HBox.ts:19 居中对齐。 Static NONE NONE: string = "none" Defined in laya/ui/HBox.ts:11 无对齐。 Static TOP TOP: string = "top" Defined in laya/ui/HBox.ts:15 居顶部对齐。 Static drawtocanvCtx drawtocanvCtx: Context Inherited...
来源: Laya3.0_api 发布时间: 20231115