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

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

591. ui组件list数据源的疑问 [ 50%]

...式 // Laya.stage.scaleMode = "noborder"; var test=new TeUI(); var arr=; for(var i;i<6;i++){ arr.push({m_lable:"NO."+i}); } console.log(test.m_list) test.m_list.array=arr; Laya.stage.addChild(test); test.show(); })(); 但没有出来想看到的效果,个人对这个list.array不是很理解,...

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

592. 打包到ios和android,sprite上设置texture没有作用了。 [ 50%]

... 韩韩韩韩韩爽a • 2019-04-02 16:22 更新到最新的引擎后,用for循环创建动画后,播放的时候只有一个可以播放出来,而使用其他的版本,这个问题还是存在 177*****610 • 2019-02-25 13:58 ok!

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

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

594. 我看到这段话后,我 [ 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

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

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

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

598. 如何通过代码控制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

599. 点击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

600. 射线检测-选取物体 [ 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_示例 发布时间: 20241002