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

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

131. 3D项目, 骨骼下放入一个空节点容器GameObject导出的问题,, [ 69%]

...ene中(一定要加入到场景) Scene3DManager.getInstance().nowScene.addChild( box ); this._ani.linkSprite3DToAvatarNode("RHand",box); linkSprite3DToAvatarNode 这个借口会报错,, throw("Animator:sprite3D must belong to this Animator");  走到这里了,, 模型资源在附件里...

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

132. 绘制形状时事件不触发 [ 68%]

...ing = new myRing(600, 300, 18, "#087729", 40, "#a87729");     Laya.stage.addChild(ring.sprite); }   laya_test();   代码如上,点击绘制的圆环,无触发事件 使用的库为LayaAirJS_1.5.5_beta,库内无修改   laya air引擎使用过程中,经常发现各种不触发事件的...

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

133. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 68%]

...omp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问题,否则会导致显示异常,其他child消失 parent.child_1.rotation = Math.random() * 180; } } class ChildView extends ui.ChildViewUI{ constructor(){ s...

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

134. Dialog组件popup看不到 把这个添加到舞台上才能看到 [ 67%]

...23 赞同来自: hnmj_views["box_leaveRoom"].container.popup(); Laya.stage.addChild(hnmj_views["box_leaveRoom"].container); 当第二句代码注释的时候 点击事件触发了第一句 但是无法弹出 或者说没有看到 2018-03-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

135. vbox动态添加子项目问题 [ 67%]

...加子项目问题 UI里有一个VBOX,然后代码里通过for循环来addChild(ItemRender)的方式 添加子项目,页面中发现所有子项目居然重叠在一起了,使用了vbox.refresh()也没用,如何能让动态添加进入vbox的东西正常排列? 2018-08-29 添加评论 免...

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

136. 多种碰撞器形状(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 66%]

... = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))); //创建刚体碰撞器 var rigidBody = box.addComponent(Laya.Rigidbody3D); //创建盒子形状碰撞器 var boxShape = new Laya.BoxColliderShape(sX,...

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

137. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 66%]

...j.Curr_Game_ImagePath + "hall/room_bg.png"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan.png"); button.pos(300, 0); this.roombg.addChild(button); button.on(Event.MOUSE_DOWN, this, function (e) { list.add...

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

138. 在Unity中导出拖尾系统(JavaScript-3D基础(JS)-LayaAir3D之拖尾系统) [ 65%]

...er.create(this,function(sp){ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function(){ //使用差速来体现移动 box.transform.translate(new Laya.Vector3(0,0.05,0),false); camera.transform...

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

139. 在Unity中导出拖尾系统(TypeScript-3D基础(TS)-LayaAir3D之拖尾系统) [ 65%]

...er.create(this,function(sp){ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function(){ //使用差速来体现移动 box.transform.translate(new Laya.Vector3(0,0.05,0),false); camera.transform...

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

140. laya.ui.Tree_API3.0 [ 65%]

... tree 的宽度。 tree.height = 100;//设置 tree 的高度。 Laya.stage.addChild(tree);//将 tree 添加到显示列表。 } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item extends Box { public function Item() { this.name = "render"; this.right = 0; this.left = 0; va...

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