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

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

61. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 81%]

...Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var WebGL = Laya.WebGL;...

来源: Laya2.0_文档 发布时间: 20210714

62. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 81%]

...lect); list.renderHandler = new Handler(this, this.updateItem); Laya.stage.addChild(list); // 设置数据项为对应图片的路径 var data: Array = []; for (var i: number = 0; i < 10; ++i) { data.push("res/ui/listskins/1.jpg"); data.push("res/ui/listskins/2.jpg"); data.push("res/ui/listskins/3.j...

来源: Laya2.0_文档 发布时间: 20210715

63. 飞机大战js源码中判断语句问题 [ 81%]

...景图。 box = new Sprite(); //把这容器添加到舞台。 Laya.stage.addChild(box); //创建背景1 bg1 = new Sprite(); //加载并显示背景图1 bg1.loadImage("res/background.png"); //把背景1添加到容器 box box.addChild(bg1); //创建背景2 bg2 = new Sprite(); //加载并显示背景...

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

64. list item 添加事件后无法监听 [ 80%]

...5);     api_list_view.dataSource = createAPIList();     Laya.stage.addChild(api_list_view);   }   2018-07-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 问题描述具体一...

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

65. UI 控件多次调用 RESIZE 回调问题 [ 80%]

...ent.RESIZE, this, () =&gt; { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () =&gt; { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 a 的 RESIZE 方法,这个是否正常? 引擎版本:Laya.version="1.7....

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

66. laya3D 发部为android,只要一创建场景(包括空场景)就有如下报错,并且黑屏 [ 80%]

... 01-25 20:35:11.988 6022-6038/? E/LayaBox: JCSceneCmdDispath::_rendercmd_addChild error can't find the node3d id=-1 2018-01-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 dfklegend 赞同来自: Laya3D.init(170...

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

67. rigidBody.applyForce 物体不会移动 [ 80%]

... Laya.Scene3D(); //将场景加到舞台上 this.scene = scene; Laya.stage.addChild(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var li...

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

68. 天理何在,一个轴心点位中心的addChild到一个父容器,父容器的轴线点也是中心 [ 80%]

天理何在,一个轴心点位中心的addChild到一个父容器,父容器的轴线点也是中心 constructor(skin:Box) { super(); this.mc = skin; this._name = this.mc.name; this.addChild(this.mc); var xx:number = this.mc.x; var yy:number = this.mc.y; this.x = xx; this.y = yy; //一个轴心...

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

69. 同一类型光源互斥的问题报告 [ 80%]

...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(3, 8, 10)); camera.transform.lookAt(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 1, 0)); cam...

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

70. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 80%]

...&gt; { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins); this.btn2 = new Laya.Button(this.skins); this.btn3 = new Laya.Button(this.skins); } // 创建VBox组件 pri...

来源: Laya3.0_文档 发布时间: 20251010