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

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

1101. 玩一玩项目中加载 .proto和.txt文件失败,加载 xml, 图集等是正常的 [ 51%]

...败,加载 xml, 图集等是正常的 如题所述。 使用的是 Laya.loader.load(...) 加载。 加载 .proto或者 .txt 等文件时,getRes 的结果都是一个 10282 长度的 ArrayBuffer ,用 TextDecoder 导出来是如下字符:   附件 : --> 2018-03-27 添加评论 免费帖...

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

1102. MiniAdpter.nativefiles 设置后并没有起作用 [ 51%]

...l/";   MiniAdpter.nativefiles=[  "res/media/",  "prefab/bb.json" ] Laya.Loader.load(...../); 2019-09-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 只有在微信小游戏中才有...

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

1103. 图片遮罩大小跟设置不一致 [ 51%]

...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.grap...

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

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

...var resourceArray = [ { url:"res/atlas/comp.atlas" , 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 这个是主...

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

1105. 请问:Ts下如何实现打开照相机和系统图库的方法?IOS和Android [ 51%]

....id = "photo";         body.appendChild(input);         Laya.loader.load("comp/button.png");         let button = new UIButton("comp/button.png","点我");         button.labelSize = 30;         button.size(300,100);         button.centerX = 0;       ...

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

1106. 图片通过drawTexture平铺出现缝隙 [ 51%]

...      this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);         this.darwSprite.graphics.drawTexture(t,176*2,0);   采用这方式...

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

1107. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 51%]

...ources/apes/monkey2.png"); assets.push("resources/apes/monkey3.png"); Laya.loader.load(assets).then(()=>{ for(var i:number = 0, len: number = assets.length; i<len; ++i) { var asset:string = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调...

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

1108. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 51%]

...; import laya.utils.Handler; /** * ... * @author ww */ public class TestTTFLoader  {   public function TestTTFLoader()  { Laya.init(1000, 900);   Laya.loader.load("res/remember.ttf",new Handler(this,test)); }   private function test():void { var text:Text; text = new Text(); text.fontSize = 30;...

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

1109. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 51%]

...认应用程序。编写代码如下: ```java package { import laya.net.Loader; import laya.utils.Handler; import ui.EffectAnimationDemoUI; public class Main { public function Main() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //加载图集资...

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

1110. 请教制作android联网版带有cache的apk包流程 [ 51%]

...何制作的? 请教下微信小游戏的内存和数据缓存? Laya.Loader.getRes请教 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 请教一下,页面元素在不同的设备上,怎么让它居中显示呢或者自适应宽度? 请...

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