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

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

141. 解析JSON格式的数据 [ 76%]

...的 fbxtool 工具文件你们有吗? 我不要插件,要可执行的exe Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 天空盒 cubemap ltc 格式? layabox能用上webp图片格式么? 小游戏 解析xml 问题 问题状态 最...

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

142. Sprite-切换纹理 [ 76%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load([texture1, texture2], Handler.create(this, onAssetsLoaded)); })(); function onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2);...

来源: Laya_示例 发布时间: 20240929

143. graphics使用matrix的异常情况 [ 76%]

graphics使用matrix的异常情况 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); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200...

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

144. 如何显示动画ani [ 76%]

...成了.ani 文件,可是怎么在主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。   代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import...

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

145. protobuffer加载失败 [ 76%]

...资源地址使用中括号 )加载 .proto 文件失败:     Laya.loader.load(["res/protobuf/user.proto"], Handler.create(this, onAssetsLoaded)); 错误提示如下: [warn]Retry to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto [error]Failed to load: E:/LayaBox/ProtobufLoadTe...

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

146. UI-TextArea [ 76%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15);...

来源: Laya_示例 发布时间: 20240929

147. Sprite-切换纹理 [ 76%]

...tage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.flag = true; Laya.loader.load([monkey1Str, monkey2Str], Laya.Handler.create(this, this.onAssetsLoaded)); } onAssetsLoaded() { monkey1Res = Laya.loader.getRes(monkey1Str), monkey2Res = Laya.loader.getRes(monkey2Str); this.ape = new Laya.Sprite(...

来源: Laya2.0_示例 发布时间: 20240929

148. 动画-图集动画 [ 76%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(aniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.Loader.ATLAS); } createAnimation() { const Animation = Laya.Animation; let ani = new Animation(); Laya.stage.addChild(ani); ani.loadAtlas(an...

来源: Laya2.0_示例 发布时间: 20240929

149. UI-ColorPicker [ 76%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onColorPickerSkinLoaded)); })(); function onColorPickerSkinLoaded() { var colorPicker = new ColorPicker(); colorPicker.selectedColor = "#ff0033"; colorPicker.skin = skin; colorPicker.pos...

来源: Laya_示例 发布时间: 20240929

150. UI-TextArea [ 76%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const TextArea = Laya.TextArea; let ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3...

来源: Laya2.0_示例 发布时间: 20240929