大约有 118 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
..."; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; this.owner.addChild(ta); } } (代码中的图片资源来自“引擎API使用示例”项目,开发者可以自行创建下载) 运行结果: (图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine...
来源: Laya3.0_文档 发布时间: 20251010
...p.graphics.drawRect(0, 0, 50, 50, "#ffffff"); sp.x=xx; sp.y=yy; Laya.stage.addChild(sp); return sp; } //添加缓动的函数 private function addTime(timeLine:TimeLine,sp:Sprite,yy:Number):void { timeLine=new TimeLine(); timeLine.to(sp, {y: yy}, 3000, Ease.linearIn); timeLine.once(Event.COMPLETE,th...
来源: Laya_社区 发布时间: 20161207
... 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 clearTimer(caller:*, method:Funct...
来源: laya_api 发布时间: 20170929
...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...
来源: Laya2.0_文档 发布时间: 20210714
...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...
来源: Laya2.0_文档 发布时间: 20210715
...g:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.skin; imgMask.scaleX = 0; // 无效 // imgMask.scaleX = 1 // 有效 //imgMask.scaleX = 0.5 // 有效 img.mask = imgMask; imgMask.repaint(); } } new ...
来源: Laya_社区 发布时间: 20170327
... this.aniBirdSing.height); this.aniBirdSing.mouseEnable = true; Laya.stage.addChild(this.aniBirdSing); } 根据这个代码,我认为鼠标点击区域在图片左下区域,但结果是图片左上区域,求解? 如果我想让图片的点击区域是图片左下区域,应该如何出来...
来源: Laya_社区 发布时间: 20171026
...Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Laya.Clip = new Laya.Clip("resources/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox";//设...
来源: Laya3.0_文档 发布时间: 20251010
...= new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.TimeLine(); timeLine.addLabel("0",delay).to(sp,{x:550},500,null,0); timeLine.addLabel("1",delay).to(sp,{y:350},500,null,0); timeLine.addLabel("2",de...
来源: Laya_社区 发布时间: 20170410
...名称。 ```typescript //初始化3D场景 var scene:Scene3D = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //获取球型精灵 var sphere:MeshSprite3D = scene.getChildByName("Sphere") as MeshSprite3D; //获取精灵的mesh var sph...
来源: Laya2.0_文档 发布时间: 20210714