大约有 359 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0081 秒)
...载。 example 以下示例代码,创建了一个新的 Image 实例,设置了它的皮肤、位置信息,并添加到舞台上。 package { import laya.ui.Image; public class Image_Example { public function Image_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor...
来源: Laya3.0_api 发布时间: 20231115
...显示异常。(通常电脑上显示正常,在一些移动端因缺少设置的字体而显示异常)。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By align : String 表示文本的水平显示方式。 取值: "left": 居左对齐...
来源: laya_api 发布时间: 20170929
...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:57 autoSize autoSize: boolean = false Inherited from AnimationBase.autoSize Defined in laya/display/Sprite.ts:258 指定是否自动...
来源: Laya3.0_api 发布时间: 20231102
...vate var clip:Clip; public function Clip_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { clip = new Clip("resource/ui/clip_num.png", 10, 1);//创建一个 Clip 类的实例对...
来源: Laya3.0_api 发布时间: 20231115
..._Example { public function List_Example() { Laya.init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/...
来源: Laya3.0_api 发布时间: 20231115
...nput_Example { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function...
来源: Laya3.0_api 发布时间: 20231115
...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoDestroyAtClosed autoDestroyAtClosed: boolean = false Defined in laya/display/Scene.ts:25 场景被关闭后,是否自动销...
来源: Laya3.0_api 发布时间: 20231115
...:13 浏览: 3508 关注: 6 人 Prajna • 2018-05-07 15:29 偏移 在这里设置一下 主域里的代码 rankSprite2.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); 改为 0, 0 zhaodi0217 • 2018-05-14 17:58 是rankTexture.width,rankTexture.height都改成0,0...
来源: Laya_社区 发布时间: 20180504
...显示异常。(通常电脑上显示正常,在一些移动端因缺少设置的字体而显示异常)。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-onl...
来源: Laya2.0_api 发布时间: 20190513
...实现对话框弹出,拖动,模式窗口功能。 可以通过UIConfig设置弹出框背景透明度,模式窗口点击边缘是否关闭等 通过设置zOrder属性,可以更改弹出的层次 通过设置popupEffect和closeEffect可以设置弹出效果和关闭效果,如果不想有任...
来源: Laya3.0_api 发布时间: 20231115