大约有 360 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0052 秒)
...te3D(Laya.Mesh.load("fish/denglongyu/denglongyuANI-denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/denglongyu1.jpg"); fish.meshRender.material = fishmaterial; fish.transform.l...
来源: Laya_社区 发布时间: 20170918
...w Laya.Sprite(); reference.pos(0, 0); reference.size('100%', '100%'); this.addChild(reference); Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement,reference,0, 0,'100%','100%']); Laya.Utils.fitDOMElementInArea(videoElement,reference,0, 0,'100%','100%') } } 2018-11-2...
来源: Laya_社区 发布时间: 20181124
... 是否我要使用3d模型,就必须创建scene才能够加载出来,addchild到普通sprite里面可以吗。 2018-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 不可以 2018-03-10...
来源: Laya_社区 发布时间: 20180309
...何吓吓:请问内嵌模式直接new出来的场景是直接用Laya.stage.addchild加到场景里? 内涵tv何吓吓 • 2019-03-07 09:28 @HoJanHoi:Laya.stage.addchild是加到stage上,场景和stage是不同的概念吧我觉得,因为我理解是场景也是在stage上展示的 HoJanHoi •...
来源: Laya_社区 发布时间: 20190305
...e3d/LayaScene_SampleScene/Conventional/role.lh"); Laya.stage.addChild(rolde); 模型要加在3d场景上 不要加在stage上 2020-01-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 大奥 相关问题 2.0一不小心删...
来源: Laya_社区 发布时间: 20200113
...); function init() { // var gameManager = new GameManager(); // Laya.stage.addChild(gameManager); Laya.loader.load("res/parts/lizi2.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } var i = 0; function onAssetsLoaded(settings) { var sp = new Particle2D(settings); sp.play(); sp.emitt...
来源: Laya_社区 发布时间: 20170103
...的链接 提交 2 个回复 wudi199553 赞同来自: var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(5, -10, 500)); 2017-12-18 0 1 分享 微博 QZONE 微信 wudi199553 赞同来自: https://ask.layabox.com/question/7565 2017-12-19 0 0 分享 ...
来源: Laya_社区 发布时间: 20171218
...ar terrain = Laya.Mesh.load("line/lineMesh.lm"); var terrainSprite = scene.addChild(Laya.MeshTerrainSprite3D.createFromMesh(terrain, 129, 129)); var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture...
来源: Laya_社区 发布时间: 20170620
... 菜鸟注意 ts 1.4 添加一盏灯光 var directionLight =scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.ambientColor = new Laya.Vector3(0.7, 0.6, 0.6); directionLight.specularColor = new Laya.Vector3(1.0, 1.0, 0....
来源: Laya_社区 发布时间: 20161012
...t(); this.phasorSpriter3D = new Laya.PhasorSpriter3D(); this.camera = this.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 1, 3)); //camera.addComponent(CameraMoveScript); this.camera.clearColor = null; } Laya.class(MousePickingScene, "MousePickingScene", ...
来源: Laya_社区 发布时间: 20170323