大约有 2,654 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
Laya_社区(2024) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(82) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(47)
...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
...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
...按钮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
... = 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
... (<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
... */ //*/强迫保持原本设定的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
...,还没有正式发出去。 2020-08-10 0 1 分享 微博 QZONE 微信 S_eVent 赞同来自: 如果小写的laya命名空间作为属性变量的类型使用的话是没有问题的,因为编译成js后会去掉。但一旦作为父类被继承的话就会报错了,我这边是.efc文件导出...
来源: Laya_社区 发布时间: 20200809
...如下: 以下是代码: 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
...化蛇 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
...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