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

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

3711. 按时间清理Laya.pool中缓存对象, 游戏大厅缓存问题 [ 47%]

...载需要的js的 cwugs • 2018-06-11 11:53 private loadJs(jsPAth, fun) { var new_element1 = document.createElement("script");//创建新的script节点 new_element1.setAttribute("type", "text/javascript"); // new_element1.setAttribute("src", jsPAth); //LayaN...

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

3712. 加载.atlas动画错误 [ 47%]

...赞同来自: 就是一步一步按照文档走的   //创建动画实例 var roleAni = new laya.display.Animation(); // 加载动画图集,加载成功后执行回调方法 roleAni.loadAtlas("http://10.10.20.58/chicken/res ... ot%3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya...

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

3713. laya.d3.component.physics.BoxCollider [ 47%]

...  public function get boundBox():OrientedBoundBoxcenterproperty public var center:Vector3 中心点 sizeproperty size:Vector3 获取盒子碰撞器长宽高的一半。 Implementation     public function get size():Vector3    public function set size(value:Vector3):voidConstructor Detail...

来源: laya_api 发布时间: 20170929

3714. LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 [ 47%]

...tivityLimitedTask.prototype.onItemUpdate = function(_cell, _index) {     var data = this.mList_.task_info[_index];     if (data) {         _cell.layer_one.visible = (-1 == data.task_id);         _cell.layer_two.visible = !_cell.layer_one.visible;         _cell.height = (-1 == data.ta...

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

3715. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 47%]

...new Food("菜品4", "4", 3)); foodArray.push(new Food("菜品5", "5", 4)); var list:List = new List(); list.itemRender = Food; list.array = foodArray; list.repeatX = 1; list.repeatY = foodArray.length; list.renderHandler = new Handler(this, onListRender); Laya.stage.addChild(list); } private functio...

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

3716. 2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug [ 47%]

...(url) && !MiniFileMgr.getFileInfo(Laya.URL.formatURL(url))) {    var tempUrl = Laya.URL.formatURL(url);    if (url.indexOf(MiniAdpter.window.wx.env.USER_DATA_PATH) == -1 && (tempUrl.indexOf("http://") != -1 || tempUrl.indexOf("https://") != -1)) {    if (MiniA...

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

3717. 如何实现点击列表时,点击item中的按钮有事件,点击item其他位置没有事件,目前只能实现点击list里的item组件进行事件监听,没办法实现监听item中的button [ 47%]

...如代码 方法一: function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") as Button;(名字是你在ide里自己设定的) button.on(事件注册) }   方法二: list组件.itemRender  = UI页面 function renderHandler(item:UI页面,index:int):void...

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

3718. 如果作大型LAYA AS项目,有可能支持module技术么 [ 47%]

...dule.js生成均只有以下内容  (nction(window,document,Laya){     var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; })(window,document,Laya); 2017-02-09 0 0 分享 微博 QZONE 微信 joe51586 赞同来自: 这个问题就...

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

3719. layacmd mac 系统安装不上,急 [ 47%]

...ground-color: #000000; background-color: rgba(0, 0, 0, 0.9)} span.s1 {font-variant-ligatures: no-common-ligatures} yaotekejirigala:~ root# npm install layacmd -g/usr/local/bin/layacmd -> /usr/local/lib/node_modules/layacmd/layacmd.js > electron@1.8.6 postinstall /usr/local/lib/node_modules/lay...

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

3720. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 47%]

... 无加载失败重试         Laya.loader.retryNum = 0;          var urls: any = ["do not exist", "resources/res/fighter/fighter.png", "resources/res/legend/map.jpg"];         Laya.loader.load(urls, Laya.Loader.IMAGE, this.onLoading).then(() =>         {             this.o...

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