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

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

491. 动画-新版骨骼动画 [ 64%]

...attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")); changeActionButton.s...

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

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

...相关的链接 提交 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

493. 子容器的事件问题 [ 64%]

...r引擎 子容器的事件问题 // 程序入口 Laya.init(800, 800); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: Vi...

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

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

...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

495. 特效LOADED监听不到 [ 64%]

...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

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

...有资源 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

497. 微信小程序里加载json文件 [ 63%]

...小程序里加载json文件 微信小程序里加载json文件:   Laya.loader.load("json/dropData.json",Handler.create(this,readJsonFinish3) ,null,Loader.JSON );     然后报错:   排除法处理了下,发现是json里有中文的原因。这个微信小程序怎么读取有中文的配...

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

498. 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

499. 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

500. 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