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

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

1071. 微信小游戏加载资源问题 [ 44%]

...cheFile || isSaveFile) { MiniFileMgr.copyFile(filePath, readyUrl, new Laya.Handler(MiniFileMgr,MiniFileMgr.copyFileCallback,[callBack,data]), encoding, isAutoClear); } else callBack != null && callBack.runWith([0, data]); } else callBack != null && callBack.runWith([0, data]); }, fai...

来源: Laya_社区 发布时间: 20200103

1072. 微信小游戏中iPhoneX的适配问题 [ 44%]

...使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); kezhiyu • 2018...

来源: Laya_社区 发布时间: 20180604

1073. Animation创建和销毁的问题 [ 44%]

...画 Laya.loader.load(["res/fish_1/stand.atlas","res/fish_1/attack.atlas"], Handler.create(this, this.onAnimAtlasLoaded)); } } private function onAnimAtlasLoaded():void { testAnim1 = new Animation(); testAnim1.loadAnimation("res/fish_1/fish_1.ani"); Laya.stage.addChild(testAnim1); testAnim1.play(0,tr...

来源: Laya_社区 发布时间: 20180424

1074. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 44%]

...载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height =...

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

1075. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 44%]

...     Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(null, function(sp)             {                 var layaMonkey2  = scene.addChild(sp);                 layaMonkey2.transform.localScale = new Laya.Vector3(4, 4, 4);               ...

来源: Laya_社区 发布时间: 20211009

1076. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 44%]

...与图片资源需要提前加载完成 CmShowTool.LoadCharacter(struct, Handler.create(this, this.onLoadCharacter, [struct])); ``` 3. 加载完成回调 ```typescript /** * @param struct 辅助对象, 记录部件与对应资源路径 * @param sprite 返回厘米秀模型根节点 * @param render...

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

1077. 微信小游戏资源总是加载旧的资源 [ 44%]

...ATLAS},          {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(...   并且在这之前已经加载并设置了版本文件 URL.version=Laya.loader.getRes("resVersion.json");   我们游戏已经在微信小游戏之外的平台上线了的,以前热更新都没问题...

来源: Laya_社区 发布时间: 20180505

1078. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 44%]

...源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = new Laya.Button(this.skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 bt...

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

1079. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...x.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); 编译运行上面的代码,然后点击舞台可以看到,二维码已经显示到了舞台上,可以用手机扫下,发现手机已经...

来源: Laya3.0_文档 发布时间: 20251010

1080. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 44%]

...s" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主的JS. 数据服务器都能正常接收,但是返回...

来源: Laya_社区 发布时间: 20180315