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

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

1. laya.ui.Image_API3.0 [ 100%]

...e_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 ,并传入它的皮肤。 bg.x = 100;...

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

2. laya.ui.Dialog_API3.0 [ 81%]

...aya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instanc...

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

3. laya.net.LoaderManager_API3.0 [ 33%]

...ader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg"); Returns void clearUnLoaded clearUnLoaded(): void Defined in laya/net/LoaderManager.ts:451 清理当前未完成的加载,所有未加载的内容全部停止加载。 Returns void create create(url: string | (stri...

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

4. laya.display.Sprite_API3.0 [ 26%]

...aya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { sprite = new Sprite();//创建一个 Sprite 类的实例对象 sprite 。 sprite.loadImage("resource/ui/bg.png");//加载并显...

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

5. laya.net.Loader_API3.0 [ 26%]

...ng 图集地址或者texture地址,比如 "res/atlas/comp.atlas"或"hall/bg.jpg" Returns void clearUnLoaded clearUnLoaded(): void Defined in laya/net/Loader.ts:859 清理当前未完成的加载,所有未加载的内容全部停止加载。 Returns void event event(type: string, data?: any): boo...

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

6. laya.ui.ProgressBar_API3.0 [ 24%]

...r_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));//加载资源。 } private function onLoadComplete():v...

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