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

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

591. 资源加载事件监听 [ 67%]

...否可以监听, 比如类似这样 Laya.stage.on(Laya.Event.COMPLETE, this, this.OnLoadLog); 2017-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 资源加载有Event.LOADED事件...

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

592. 添加舞台事件问题? [ 67%]

添加舞台事件问题? this.addEventListener(Event.ADDED_TO_STAGE, addtoStageHandler); as3的添加舞台事件,Laya有木有类似的事件啊? 2017-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...

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

593. 重力感应在手机没有回调问题 [ 67%]

...力感应在手机没有回调问题 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator);   monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) 在PC端调试回调中accelerationIncludingGravity为空,手机扫码调试。次函数不会被调...

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

594. 动画-旧版骨骼动画 [ 67%]

...kinModel/Zombie/old/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { zombie.transform.rotation = new Laya.Quaternion(-0.7071068, 0, 0, -0.7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var skinAniUrl = [ "../../res...

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

595. 关于HttpRequest报错问题 [ 67%]

...cation/x-www-form-urlencoded; charset=utf-8"); xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete); xmlHttp.once(Event.ERROR,this,errorHandler); xmlHttp.on(Event.PROGRESS,this,processHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); }; function err...

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

596. 微信飞机大战报错 [ 67%]

...= (function(_super){     function GameInfo(){         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(GameInfo, "GameInfo", _super);     var _proto = GameInfo.prototype;     _proto.reset = ...

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

597. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.clip.clipX...

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

598. 在浏览器里打开游戏退出时游戏会执行什么? [ 66%]

在浏览器里打开游戏退出时游戏会执行什么? this.on(Laya.Event.REMOVED,this,this.releaseUp); 我之前执行过这个方法。。但是这个方法必须是当前界面销毁或者移除的时候才执行。。如果在浏览器里,我点关闭或者手机上点返回。。那这...

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

599. api readFile success callback function undefined [ 66%]

...ayair 两点之间的距离api在哪里 调用动画结束on方法,报错this.zombieAnimator.on is not a function 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? Laya API video / laya.device.media 是否支持 WebRTC 影音直播 运行报错 U...

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

600. 使用Pool的时候创建的对象怎么传递参数 [ 66%]

...用Pool的时候创建的对象怎么传递参数 我之前是这样写的this.movingBlock = new MovingBlock(this.direction, movingBlockY), 但是这样每次都是new对象,太耗性能了,所以我用了这个,但是不知道怎么传递参数: this.movingBlock = Laya.Pool.getItemByClass...

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