大约有 1,303 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0114 秒)
Laya_社区(741) Laya2.0_文档(164) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(27)
... x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(point:Point, ...
来源: laya_api 发布时间: 20170929
...ultFont = "36px Arial"; Laya.loader.load("data/Questv1_Regular.ttf", Handler.create(this,onLoaded), null, Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf"); if(arr && Browser.window.conch) { Browser.window.conc...
来源: Laya_社区 发布时间: 20180705
...ar Bitmap = laya.resource.Bitmap; var Texture = laya.resource.Texture; var Handler = laya.utils.Handler; var Loader = laya.net.Loader; var Animation = laya.display.Animation; var Rectangle = laya.maths.Rectangle; var Event = laya.events.Event; var Pool = laya.utils.Pool; var Browser = laya.utils.Bro...
来源: Laya_社区 发布时间: 20160801
...有额外内存开销,无需renderTarget支持。 Sprite closeEffectHandler : Handler全局默认弹出对话框效果,可以设置一个效果代替默认的弹出效果,如果不想有任何效果,可以赋值为nullDialogManager customRenderEnable : Boolean[write-only] 设置是否开...
来源: Laya2.0_api 发布时间: 20190513
...atlas方式图集使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文...
来源: Laya2.0_文档 发布时间: 20210715
...as方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Laya.Handler.create(this, this.onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件...
来源: Laya2.0_文档 发布时间: 20210714
...this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 this.hero.shootType = 1...
来源: Laya_社区 发布时间: 20170525
...//atlas方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的...
来源: Laya2.0_文档 发布时间: 20210714
...n); Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame)); } private loadGame(): void { var resArray = [ { url: "res/atlas/lobby/create_room.atlas", type: Laya.Loader.ATLAS }, ...
来源: Laya_社区 发布时间: 20181213
...景颜色 var clip; Laya.loader.load("resource/ui/clip_num.png",laya.utils.Handler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); clip = new laya.ui.Clip("resource/ui/clip_num.png",10,1);//创建一个 Clip 类的实例对象 clip ,传入它...
来源: Laya3.0_api 发布时间: 20231115