大约有 1,254 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0063 秒)
Laya_社区(850) Laya2.0_文档(116) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya3.0_文档(54) Laya2.0_示例(8) Laya_示例(6)
...at.show(); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 10000))); camera.transform.translate(new Laya.Vector3(0, 5, 5)); camera.transf...
来源: Laya_社区 发布时间: 20180427
...reshLoading.bottom = 10; this.refreshLoading.visible = false; this.baseBox.addChild(this.refreshLoading); // 加载动画 this.loadingAni = new Animation(); this.loadingAni.loadAnimation("res/ui/refreshList/ani/Refresh.ani"); this.loadingAni.pos(27, 36); this.loadingAni.autoPlay = true; this.refresh...
来源: Laya2.0_示例 发布时间: 20251130
...age.width,Laya.stage.height,"#FFFFFF"); Laya.stage.addChild(sp); let guideView = new MazeGuideView(); guideView.zOrder = MazeConst.gameZOrder; guideView.pos(0,0); Laya.stag...
来源: Laya_社区 发布时间: 20200119
3D阴影无法渲染出来 //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight...
来源: Laya_社区 发布时间: 20170809
...官方示例脚本,加载一个从U3D导出的2D粒子特效Laya.stage.addChild(Laya.Scene.load(url)) 但是粒子不显示。想问到底这个步骤怎么搞?急急急!!!!我把导出的资源上传了。 附件 : --> LayaScene_1.rar 2018-03-20 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180320
...ya.BoxMesh(0.6, 0.6, 0.6); var box = new Laya.MeshSprite3D(boxmesh); scene.addChild(box); box.transform.translate(_position); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); ...
来源: Laya_社区 发布时间: 20181126
...if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。。。 生成的 图片 从一个场景中回来在生成 他的 子物体 Sprite 在切换场景再回来 在生成 如此多次 自后 我的 list 内部 数量比较多但大部分都是重复,...
来源: Laya_社区 发布时间: 20170324
...ect(0, 0, 100, 100, "#0000FF", "#000000", 1); Laya.stage.addChild(top_rect); let rect_bottom: Laya.Sprite = new Laya.Sprite(); rect_bottom.x = 0; rect_bottom.y = 0; rect_bottom.size(100, 100); rect_bo...
来源: Laya_社区 发布时间: 20190730
...加子项目问题 UI里有一个VBOX,然后代码里通过for循环来addChild(ItemRender)的方式 添加子项目,页面中发现所有子项目居然重叠在一起了,使用了vbox.refresh()也没用,如何能让动态添加进入vbox的东西正常排列? 2018-08-29 添加评论 免...
来源: Laya_社区 发布时间: 20180829
...Animation(); var waterBg = Laya.Sprite.fromImage("res/bg.png"); Laya.stage.addChild(waterBg); //创建背景 this.bg = []; this.bg[0] = new BackGround("res/bg1.png", 0.1); this.bg[0].pos(0, 0); Laya.stage.addChild(this.bg[0]); this.bg[1] = new BackGround("res/bg2.png", 1); this.bg[1].pos(0, 0); Laya...
来源: Laya_社区 发布时间: 20170103