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

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

571. 官方的示例贴上来,怎么没反映啊 [ 77%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("https://api.weixin.qq.com/cgi- ... ot%3B, "", "get", "text"); function processHandler(...

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

572. 射线一直无法获取物体 [ 77%]

... = scene.addChild(Laya.Sprite3D.load("./test.lh"));     qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){         qb_pet.addComponent(Laya.SphereCollider);     });   设置射线:    Laya.timer.frameLoop(1, null, checkHit);     var hit = new Laya.RaycastHit();     var point...

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

573. 切换后台时,引擎如何判断是否停止定时器? [ 77%]

...structor() {         super();          this.stage.on(Laya.Event.FOCUS, this, this.onFocus);         this.stage.on(Laya.Event.BLUR, this, this.onBlur);         Laya.timer.frameLoop(1,this,this.onFrameLoop);     }      private onFrameLoop():void{       ...

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

574. 请问我用下面的代码发送个简单的http get请求,为什么在电脑上能得到成功输出,在手机上总是得到失败输出呢? [ 77%]

...%3B alert("url=" + url); var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, null, cb_onSuccess); req.on(laya.events.Event.ERROR, null, cb_onFail); req.send(url); } function cb_onSuccess(response) { alert("response=" + response); // 成功输出:{"ret":1478136071} } function c...

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

575. layaAir1.3.1版本SWF组件播放速度异常 [ 77%]

...后 示例如下: package { import laya.ani.swf.MovieClip; import laya.events.Event; public class AAA { private var swf:MovieClip; public function AAA() { Laya.init(550,400); swf=new MovieClip(); swf.load("data.swf"); swf.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(swf); } private function...

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

576. 图片添加点击事件 有的不生效 [ 77%]

... private init():void { //添加点击事件处理 this.v_btn_boy.on(Laya.Event.CLICK, this, this.onClickBtnBoy); this.v_btn_friend.on(Laya.Event.CLICK, this, this.onClickBtnFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 priv...

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

577. LayaAirIDE2.7版本导出类名不正确问题 [ 77%]

...,还没有正式发出去。 2020-08-10 0 1 分享 微博 QZONE 微信 S_eVent 赞同来自: 如果小写的laya命名空间作为属性变量的类型使用的话是没有问题的,因为编译成js后会去掉。但一旦作为父类被继承的话就会报错了,我这边是.efc文件导出...

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

578. laya.ui.Slider [ 77%]

...All Classes | Index | Frames No Frames SliderProperties | Methods | Events Packagelaya.uiClasspublic class SliderInheritanceSlider Component Sprite Node EventDispatcher ObjectSubclasses HSlider, VSlider 使用 Slider 控件,用户可以通过在滑块轨道的终点之间移动滑块来选...

来源: laya_api 发布时间: 20170929

579. 灯光-聚光 [ 77%]

...res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 115, 150); }); var _quaternion = new Laya.Quaterni...

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

580. 输入设备-贪吃蛇(重力感应) [ 77%]

...化蛇 initSnake(); // 监视加速器状态 Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, animate); // 食物生产 Laya.timer.loop(3000, this, produceFood); // 游戏开始时有一个食物 produceFood(); })() function initSnak...

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