大约有 247 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0044 秒)
Laya_社区(133) Laya2.0_文档(40) Laya3.0_文档(16) laya_api(15) Laya3.0_api(13) Laya2.0_api(13) Laya2.0_示例(10) Laya_示例(7)
...ene中(一定要加入到场景) Scene3DManager.getInstance().nowScene.addChild( box ); this._ani.linkSprite3DToAvatarNode("RHand",box); linkSprite3DToAvatarNode 这个借口会报错,, throw("Animator:sprite3D must belong to this Animator"); 走到这里了,, 模型资源在附件里...
来源: Laya_社区 发布时间: 20181010
...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
...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
...23 赞同来自: hnmj_views["box_leaveRoom"].container.popup(); Laya.stage.addChild(hnmj_views["box_leaveRoom"].container); 当第二句代码注释的时候 点击事件触发了第一句 但是无法弹出 或者说没有看到 2018-03-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20180328
...加子项目问题 UI里有一个VBOX,然后代码里通过for循环来addChild(ItemRender)的方式 添加子项目,页面中发现所有子项目居然重叠在一起了,使用了vbox.refresh()也没用,如何能让动态添加进入vbox的东西正常排列? 2018-08-29 添加评论 免...
来源: Laya_社区 发布时间: 20180829
... = 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
...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
...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
...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
... 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