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

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

401. Laya.Image怎么获取图片的真实大小 [ 63%]

...相关的链接 提交 2 个回复 何小威 赞同来自: 无名氏 Laya.loader.load('../laya/assets/comp/bg.jpg',Laya.Handler.create(this,()=>{       this.bgImage = Laya.loader.getRes('../laya/assets/comp/bg.jpg');       console.log([this.bgImage.width,this.bgImage.height]); })); 2018-07-...

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

402. 没有预加载的图片怎么获取width和height ? [ 63%]

...nction text_load_width_height() {      Laya.init(600,400);     Laya.loader.load(["../laya/assets/comp/image.png","../laya/assets/comp/vscroll.png"],Laya.Handler.create(this,onAssetLoad));      } function onAssetLoad() {      older = new Laya.Sprite();      older.loadImage("../laya/a...

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

403. loadAnimation无法获取动画文件 [ 63%]

...   "res/atlas/role/monster/monsterA/move.atlas"         ];   Laya.loader.load(aniArr, Handler.create(this, onAni), null, Loader.ATLAS);   private function onAni():void {     var role:SimpleRole = new SimpleRole();     Laya.stage.addChild(role); }       SimpleRole类:   public fun...

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

404. 特效LOADED监听不到 [ 63%]

...n; import laya.display.Stage; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private const AniConfPath:String = "fighter/fighter.json"; public function LayaAirDemo() { // 不支持WebGL时...

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

405. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...毕,此方法只执行一次 onAwake(): void { //支付宝小游戏 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...

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

406. t._addReference is not a function [ 63%]

... llc 赞同来自: 碰到相同的问题,解决了,供参考: Laya.loader.load(chapterBG, Laya.Handler.create(this, this.onBGLoaded, [chapterBG])/* , Laya.Handler.create(this, this.onBGLoadProgress) */); 第三个参数打开在某些条件下会出t._addReference is not a function 可能是...

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

407. Animation的createFrames为何加载不了有的图集资源 [ 63%]

...rt laya.ani.AnimationState; import laya.display.Animation; import laya.net.Loader; import laya.ui.Image; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wuda...

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

408. lava 支持直接加载lav文件吗, 从unity导出的只有一个文件格式是lav的 [ 63%]

...接 提交 1 个回复 Laya_XS 赞同来自: laya支持lav文件,通过loadercreate去加载完来使用! 2017-12-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 qq394172764Q 相关问题 unity导出粒子文件问题 LayaBox ID...

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

409. laya微信小游戏加载外部素材失败 急急急 [ 63%]

...有资源 var resource = [ { url: "res/atlas/game/game.atlas", type: Laya.Loader.ATLAS }, { url: "res/models/scene/scene.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "res/models/xiaoji/xiaoji.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "res/models/item/item.lh", clas: Laya.Sprite3D, priority:...

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

410. UI图片资源不显示 [ 63%]

... 微博 QZONE 微信 hjy1234123 赞同来自: json文件没加载到 Laya.loader.load([{url: "res/atlas/**.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 像这样加载一下,再打开界面 2017-02-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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