大约有 1,557 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)
...里的full适配模式是我需要的结果,可是里面的元素都是addChild到stage上适配效果才生效 我在UI编辑器里的scene里加的组件不会进行适配,只有再次addChild到stage才生效,请问有什么设置可以处理吗 2020-07-10 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20200710
...BOX类 list.vScrollBarSkin =""; Laya.stage.addChild(list); list.array =this.arr; list.renderHandler =new Laya.Handler(this,this.updateItem); this.listArr.push(list); //----------------------------------------------------...
来源: Laya_社区 发布时间: 20190522
...loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, fa...
来源: Laya_社区 发布时间: 20200728
...rite(); ccc.graphics.drawRect(0,0,50,50,'#123000'); this.addChild(ccc); //ccc.x = -30 } Laya.class(layaSlot,null,Sprite); 代码是这样的 我的想法是 在viewport之外的 应该是不会显示的 在viwport之内显示的应该是会显示的 但是实际上...
来源: Laya_社区 发布时间: 20170323
...1024 赞同来自: (1)unity里面把粒子设置成awake播放 (2)addChild后会自动播放,播放完removeSelf掉,要播放的时候再addChild 2019-07-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 码路 相关问题 u...
来源: Laya_社区 发布时间: 20180807
...; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton); //创建一个Sprite充当音乐播放按钮 var musicButton: Sprite = this.createButton("播放音乐"); musicButton.x = soundButton.x + gap + soundButton.width; musicButton.y = soundButton.y; Laya.s...
来源: Laya_社区 发布时间: 20190421
... "HELLO"; txt.color = "#ffffff"; txt.x = 1136 / 2, txt.y = 320; Laya.stage.addChild(txt); txt = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; let mat = new Laya.Matrix(); mat.translate(1136 / 2, 320); txt.transform = mat; Laya.stage.addChild(txt); 2018-10-15 添加评...
来源: Laya_社区 发布时间: 20181015
...ld(this._che_node); .... //根据情节加载节点 this._curnode=scene.addChild(this._che_node); 上面加载的节点光照会出问题 2017-12-15 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 liuzhengcai 相关问题 发起...
来源: Laya_社区 发布时间: 20171215
...sp = new Laya.Sprite(); sp.graphics.drawTexture(texture, 0, 0); Laya.stage.addChild(sp); //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(64, 64))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); var materia...
来源: Laya_社区 发布时间: 20180331
物体碰撞问题 var box_1 : Laya.MeshSprite3D = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box_1.transform.translate(new Laya.Vector3(0, 5, 0)); var boxRigidBody_1 : Laya.Rigidbody3D = box_1.addComponent(Laya.Rigidbody3D); var boxShape...
来源: Laya_社区 发布时间: 20190602