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

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

111. 这样的panel请问如何实现比较好? [ 64%]

...; Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS);  } } new GameMain();   Test.zip 2018-08-10 0 1 分享 ...

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

112. 在微信小游戏中使用BitmapFont会导致报错. [ 64%]

...gisterBitmapFont('Name', timerFont);         Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded));     })); }  function onLoaded(): void {     //实例UI界面     var testUI: TestUI = new TestUI();     Laya.stage.addChild(testUI); } 附件 : --> src.rar ...

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

113. anchorY错误 [ 64%]

...:转换失败---chitianshishoux--加载错误,xxx/xxx/chitianshishoux.atlas spine动画转换失败,加载错误:导出二进制数据出错:writeUint8 error - Out of range261, 有谁知道什么原因导致的吗? 怎样解决? Laya.MathUtil.getRotation接口说明注释错误 Unity导出有光...

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

114. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 63%]

...uot;; this.init() } init() { // 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function()...

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

115. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 63%]

...ion beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //...

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

116. 打印错误日志 [ 63%]

...:转换失败---chitianshishoux--加载错误,xxx/xxx/chitianshishoux.atlas 自定义组件在ui编辑器上正常使用,但是导出的ui组件引用错误 急急急,运行官方的那个物理引擎例子Singshat报了这个错误 打开layaide,出现错误,要怎么解决 问题状态...

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

117. Android替换游戏启动logo看不到设置的图片 [ 62%]

....loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") ...

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

118. 报无法找到资源,未升级ide之前不报错 [ 61%]

...mber = 0; i < len; i++) {         aniFrames.push("resources/UI/role/atlasAni2/139x/" + name + i + ".png");     }     Laya.Animation.createFrames(aniFrames, name); }     附件 : --> 2023-07-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

119. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 61%]

...eFile; })); ``` #### 3、2D图集的使用 对于2D图集,预加载图集atlas文件即可,由于进行纹理压缩转换的时候,会自动在图集atlas中添加纹理压缩文件信息,所以引擎在加载图集的时候,会检测是否包含了纹理压缩转换的信息,如果包...

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

120. 无法使用LayaIDE打包图集 [ 61%]

...Error: Command failed: "D:\LayaAir\resources\app\out\vs\layaEditor\libs\TP\AtlasGenerator" --maxAtlasWidth=2048 --maxAtlasHeight=2048 --tileWidthLimit=512 --tileHeightLimit=512 "D:\LayaAir\myLaya\laya\assets\comp\paoma" --outputDir="D:\LayaAir\myLaya\bin\res\atlas" --force -c 附件 : --> 2017-04-25...

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