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

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

601. List的selectHandler 点击同一个item只能触发一次回调 [ 77%]

...Index !=value){ this._selectedIndex=value; this.changeSelectStatus(); this.event(/*laya.events.Event.CHANGE*/"change"); this.selectHandler && this.selectHandler.runWith(value); this.startIndex=this._startIndex; //} });

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

602. layacmd安装失败 [ 77%]

...e install.js` 5897 verbose stack Exit status 1 5897 verbose stack     at EventEmitter.<anonymous> (D:\SDK\node.js\node_modules\npm\node_modules\npm-lifecycle\index.js:280:16) 5897 verbose stack     at emitTwo (events.js:126:13) 5897 verbose stack     at EventEmitter.emit (events.js:214:7...

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

603. 关于3d场景上Button点击事件顺序问题 [ 77%]

...按钮button。 2,在场景中加入了鼠标点击事件  Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick);   private function sceneClick():void {     trace("scene clicked"); }   3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void {     e....

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

604. 射线一直无法获取物体 [ 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

605. 分包项目, 加载js时报错 [ 77%]

... (<anonymous>)     at AA.__proto.complete (AA.max.js:410)     at EventHandler.__proto.runWith (AA.max.js:674)     at ResInfo.__proto.event (AA.max.js:453)     at LoaderManager.__proto._endLoad (AA.max.js:9492)     at Loader.onLoaded (AA.max.js:9469)     at EventHandler.__proto.runW...

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

606. 浏览器失去焦点的时候能强制保持帧频吗? [ 77%]

... */ //*/强迫保持原本设定的FPS try { sound = new Sound(); sound.addEventListener(SampleDataEvent.SAMPLE_DATA,onWakeUp); channel = sound.play(); }catch(error:Error){}; //*/ } protected function onWakeUp(event:SampleDataEvent):void { event.data.position = event.data.length = 4096 * 4; } 这是...

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

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

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

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

608. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 77%]

...如下:   以下是代码: protected onEnter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(L...

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

609. 输入设备-贪吃蛇(重力感应) [ 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

610. 灯光-聚光 [ 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