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

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

3711. 加载.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

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

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

3714. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 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

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

3716. 如何实现点击列表时,点击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

3717. 如果作大型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

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

3719. [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

3720. mac平台1.7.20.2beta版本下compileTargets设置不生效 [ 47%]

...(){ //创建舞台 Laya.init(600, 300);//舞台默认背景色是黑色的 var txt:Text = new Text(); txt.text = "Hello, World!"; //设置文本颜色 txt.color = '#FF0000'; //设置文本字体大小,单位是像素 txt.fontSize = 66; //设置字体描边 txt.stroke = 5; //描边为5像素 txt.st...

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