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

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

601. Laya发布安卓接入穿山甲联盟sdk在安卓9.0版本以上无法运行 [ 50%]

...er = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); for (ActivityManager.RunningAppProcessInfo processInfo : manager.getRunningAppProcesses()) { if (processInfo.pid == android.os.Process.myPid()) { return processInfo.processName; } } return null; }if (!Utils.getProcessName(thi...

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

602. 我看到这段话后,我 [ 50%]

...},function(value){         this._dataSource=value;         for (var prop in this._dataSource){             if (this.hasOwnProperty(prop)&& !((typeof (this[prop])=='function'))){                 this[prop]=this._dataSource[prop];          ...

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

603. laya教程 [ 50%]

...P Configure Display Language 安装中文语言包 Extensions 搜索 debug for Chrome  安装 修改 compile.js中的sourcemap属性修改为true 或者搜索sourcemap:修改false为true 修改config.json中sourceMap属性为true   打开main.ts onConfigLoaded() console.log('helloworld');   F9...

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

604. layacmd 安装不成功 [ 50%]

...this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs electron npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional logging o...

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

605. list中加的button不能接收点击事件 求一个list中加button的demo [ 50%]

...r posY = 0;         var data: Array<any> = [];         for(var i= 0 ;i< items.UserWareList.length;i++){             var itemList = new BagItem(items.icon,items.name,items.count);             itemList.pos(70,posY);             data.push(itemList...

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

606. 如何通过代码控制prefab上面的时间轴动画animation? [ 50%]

...复 185*****013 赞同来自: 卡布 var arr:Array = target["_aniList"]; for each(var an:FrameAnimation in arr) { if(an.name=="show") { an.play(); } } 2019-02-15 1 0 分享 微博 QZONE 微信 小声飞 赞同来自: 直接用这个scene 的实例  .show.play(0) 就行了 比如 var ss:soldieritem ...

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

607. 点击list的时候触发的e.target永远是被点击的item? [ 50%]

...复 cuixueying 赞同来自: public function TestView() { var arr:Array=; for(var i:int=0;i<10;i++) { arr.push({my_clip:i}); } my_list.array=arr; my_list.renderHandler=new Handler(this,onRender); } private function onRender(cell:Box,index:int):void { // TODO Auto Generated method stub var cell:Bo...

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

608. 射线检测-选取物体 [ 50%]

...机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLigh...

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

609. 【简单跑酷--JS版】---Lv.6 终篇 [ 50%]

...; } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var i = this.mapFloor.numChildren - 1; i > -1; i--){ var floor = this.mapFloor.getChildAt(i); //检测人物是否踩在地板上面了 if(floor.checkHit(this.player.x, this.player.y)){ //人物如果踩到地板了 ...

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

610. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 50%]

...          if(!touchemoves)break;                     for (j = 0, n = touchemoves.length; j < n; j++) {                         _this.initEvent(touchemoves[j], evt);                         _this.check(_this._stage, _this.mouseX, _this.mous...

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