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

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

91. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

..."; 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

92. 发现TimeLine的一些问题,像是BUG [ 54%]

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

93. laya.map.MapLayer [ 54%]

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

94. 模型的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 52%]

...模型名称。 ```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

95. 模型的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 52%]

...模型名称。 ```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

96. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 52%]

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

97. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 51%]

... this.aniBirdSing.height); this.aniBirdSing.mouseEnable = true; Laya.stage.addChild(this.aniBirdSing); } 根据这个代码,我认为鼠标点击区域在图片左下区域,但结果是图片左上区域,求解? 如果我想让图片的点击区域是图片左下区域,应该如何出来...

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

98. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

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

99. TimeLine.addLabel(label:String, offset:Number):TimeLine 亲测! 方法中第二个参数offset无效 [ 51%]

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

100. 模型的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 51%]

...名称。 ```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