大约有 1,562 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0106 秒)
Laya_社区(1458) Laya2.0_文档(42) Laya3.0_api(25) Laya3.0_文档(23) Laya2.0_示例(6) Laya_示例(6) laya_api(1) Laya2.0_api(1)
...Example { public function TextArea_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():voi...
来源: Laya3.0_api 发布时间: 20231115
...会根据屏幕大小进行适配。可以动态调用此方法,来更改游戏显示的大小。 Stage setSelfBounds(bound:Rectangle):void 设置对象bounds大小,如果有设置,则不再通过getBounds计算,合理使用能提高性能。 Sprite size(width:Number, height:Number):Sprite...
来源: Laya2.0_api 发布时间: 20190513
...g_Instance; public function Dialog_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onL...
来源: Laya3.0_api 发布时间: 20231115
...hape:Sprite public function Sprite_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { sprite = new Sprite();//创建一个 Sprite 类的实例对象 sprite 。 sprit...
来源: Laya3.0_api 发布时间: 20231115
...xample { public function Animation_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation 类...
来源: Laya3.0_api 发布时间: 20231115
...ollBar; public function HScrollBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hscroll.png", "resource/ui/hscroll$bar.png", "resource/ui/hscroll$down.png", "resource/ui/hscroll$up.png"], ...
来源: Laya3.0_api 发布时间: 20231115
...ollBar; public function VScrollBar_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vsc...
来源: Laya3.0_api 发布时间: 20231115
...ton_toggle { public function Button_toggle() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete)); } private function onLoadComplete():void { ...
来源: Laya3.0_api 发布时间: 20231115
...ar 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 类的实例对象 clip...
来源: Laya3.0_api 发布时间: 20231115
...ge_Example { public function Image_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var bg:Image = new Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并...
来源: Laya3.0_api 发布时间: 20231115