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

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

591. 动画-旧版骨骼动画 [ 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_示例 发布时间: 20240930

592. 关于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

593. 微信飞机大战报错 [ 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

594. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 66%]

... 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child && child.name === name) return child; } return null; } 当我们找到子节点时,也可以对节点做一些基础操作,比如删除掉自己方法 removeSelf() /** * 从父容器删...

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

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

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

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

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

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

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

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

598. box2d引擎报错问题 [ 66%]

..._update (laya.core.js:21262)   相关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Poo...

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

599. 排坑:Laya.HttpRequest()无效 [ 66%]

... xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("http://www.baidu.com", "", "get", "text"); function processHandler(data) { console.log(data); } functi...

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

600. Button和下面的3D物体重叠,点击button,3D物体会同时响应自己的鼠标脚本 [ 66%]

...UI元素的 mouseEnable 设置为 true ,接收鼠标点击 onAwake() { this.isClick = false; //对舞台stage添加点击事件(这里由于有scene的缘故,点击空白处返回的对象是scene) Laya.stage.on(Laya.Event.CLICK,this,function(e) { if(e.target.name == "scene的名字") { this...

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