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

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

171. list 加载动画为什么实现的效果会错乱掉? [ 59%]

... ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.re...

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

172. laya.ui.List [ 59%]

... Inherited Public Methods Show Inherited Public Methods MethodDefined By addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node  addItem(souce:Object):void 添...

来源: laya_api 发布时间: 20170929

173. 第一个hellolayabox就报错了,求助! [ 59%]

...黑色 txt.color = '#000000'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } } 输出: Hello,World 报错: [Fault] exception, information=undefined Fault, <anonymous>() at RunDriver.as:30 2018-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

174. laya.ui.List [ 58%]

...how Inherited Public Methods MethodDefined By  _afterInited():voidList addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加...

来源: Laya2.0_api 发布时间: 20190513

175. 背景加载不进来 [ 58%]

...不过高度很小,可看成一个平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(new BoxMesh(4,4,0.001))) as MeshSprite3D; var material:StandardMaterial = new StandardMaterial(); material.diffuseTexture = Texture2D.load("res/threeDimen/layabox.png"); plane.meshRender.material = ma...

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

176. 现在的文档是不是都不能用了? [ 58%]

...了? 我把创建空项目的Main里面的代码全删了。 Laya.stage.addChild(bg); 用文档上面的便一出来全是黑窗口,啥都没得 2019-08-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ka 赞...

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

177. laya.ui.List_API3.0 [ 57%]

...s, onSelect);//设置 list 改变选择项执行的处理器。 Laya.stage.addChild(list);//将 list 添加到显示列表。 } private function onSelect(index:int):void { trace("当前选择的项目索引: index= ", index); } } } import laya.ui.Box; import laya.ui.Label; class Item extends Box {...

来源: Laya3.0_api 发布时间: 20231115

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

...private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); //初始化当前菜品下标 this.index = 0; //数据数组 foodArray = ; foodArray.push(new Food("菜品1", "1", 0)); foodArray.push(new Food("菜品2", "2", 1)); foodArray.push(new Food("菜品3", "3", ...

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

179. laya.ui.Box_API3.0 [ 57%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout...

来源: Laya3.0_api 发布时间: 20231115

180. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 57%]

...Laya.Image();             //this.text = new Laya.Label(); this.addChild(this.img);             //this.addChild(this.text); } public setImg(src: string): void { this.img.skin = src;             } }  /* class Main {     constructor() {         wx.onMess...

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