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

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

1091. laya.ani.swf.MovieClip [ 45%]

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

1092. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 45%]

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

1093. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 44%]

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

1094. laya.ui.DialogManager [ 44%]

...有额外内存开销,无需renderTarget支持。 Sprite  closeEffectHandler : Handler全局默认弹出对话框效果,可以设置一个效果代替默认的弹出效果,如果不想有任何效果,可以赋值为nullDialogManager customRenderEnable : Boolean[write-only] 设置是否开...

来源: Laya2.0_api 发布时间: 20190513

1095. 图集制作与使用详解(JavaScript-IDE篇(JS)-使用IDE创作) [ 44%]

...atlas方式图集使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ```   `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文...

来源: Laya2.0_文档 发布时间: 20210715

1096. 图集制作与使用详解(TypeScript-IDE篇(TS)-使用IDE创作) [ 44%]

...as方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Laya.Handler.create(this, this.onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件...

来源: Laya2.0_文档 发布时间: 20210714

1097. 为什么会出现报错 ani not found:ufo1_down [ 44%]

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

1098. 图集制作与使用详解(ActionScript-IDE篇(AS3)-使用IDE创作) [ 44%]

...//atlas方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的...

来源: Laya2.0_文档 发布时间: 20210714

1099. SCALE_FIXED_WIDTH适配屏幕的问题 [ 44%]

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

1100. laya.ui.Clip_API3.0 [ 44%]

...景颜色 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