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

大约有 29 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0079 秒)

1. laya.utils.Pool_API3.0 [ 100%]

...效减少对象创建的开销,避免频繁的垃圾回收,从而优化游戏流畅度。 Hierarchy Pool Index Methods clearBySign createByClass getItem getItemByClass getItemByCreateFun getPoolBySign recover recoverByClass Methods Static clearBySign clearBySign(sign: string): void Defined in la...

来源: Laya3.0_api 发布时间: 20231115

2. laya.ui.Button_API3.0 [ 89%]

...n_Example { public function Button_Example() { 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

3. laya.ui.CheckBox_API3.0 [ 89%]

...Example { public function CheckBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void {...

来源: Laya3.0_api 发布时间: 20231115

4. laya.ui.TextInput_API3.0 [ 87%]

...xample { 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 onLoa...

来源: Laya3.0_api 发布时间: 20231115

5. laya.ui.Image_API3.0 [ 86%]

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

6. laya.ui.TextArea_API3.0 [ 85%]

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

7. laya.ui.Tree_API3.0 [ 83%]

...= 0; arrow.y = 5; addChild(arrow); } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 var res = ["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png",...

来源: Laya3.0_api 发布时间: 20231115

8. laya.ui.ProgressBar_API3.0 [ 83%]

...ssBar; public function ProgressBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/progress.png", "resource/ui/progress$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } pr...

来源: Laya3.0_api 发布时间: 20231115

9. laya.display.Sprite_API3.0 [ 82%]

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

10. laya.ui.HScrollBar_API3.0 [ 82%]

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