大约有 247 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0053 秒)
Laya_社区(133) Laya2.0_文档(40) Laya3.0_文档(16) laya_api(15) Laya3.0_api(13) Laya2.0_api(13) Laya2.0_示例(10) Laya_示例(7)
... 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
... 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
...黑色 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
...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
...不过高度很小,可看成一个平面 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
...了? 我把创建空项目的Main里面的代码全删了。 Laya.stage.addChild(bg); 用文档上面的便一出来全是黑窗口,啥都没得 2019-08-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ka 赞...
来源: Laya_社区 发布时间: 20190822
...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
...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
...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
...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