大约有 26 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0027 秒)
...me("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript = camera.addComponent(LightMoveScript); //获取操作的灯光数组 va...
来源: Laya2.0_文档 发布时间: 20210715
...sphere-Sphere001.lm"))) as Laya.MeshSprite3D; mesh.transform.localPosition = new Laya.Vector3(-0.3, 0.0, 0.0); mesh.transform.localScale = new Laya.Vector3(0.5, 0.5, 0.5); } } new StaticModel_MeshSample();报错如下: TypeError: Cannot read property 'AnimationPl...
来源: Laya_社区 发布时间: 20161201
...; let spCore = sp3d.getChildByName("Canvas") as Sprite3D; spCore.transform.localPosition = new Vector3(0, 0.7, 90); let tp3d = Sprite3D.instantiate(spCore, lf, false, new Vector3(0, 2, 90)); Laya.stage.addChild(tp3d); //Sprite3D 克隆还是会报错 2019-11-26 0 0 分享 微博 QZONE 微信 Laya_Aa...
来源: Laya_社区 发布时间: 20191126
...ildByName('Scenes').getChildByName('Area').getChildByName(str))).transform.localPosition); } } 四、角色移动 角色移动,实际上就是在间隔很短的时间内,改变角色的位置。在我们的示例中,是通过每40毫秒来循环检查角色行走路线,通过Tween来执行...
来源: Laya3.0_文档 发布时间: 20230303
...tLightCom = spotLight.addComponent(Laya.SpotLightCom); spotLight.transform.localPosition = new Vector3(0.0, 9.0, -35.0); spotLight.transform.localRotationEuler = new Vector3(-15.0, 180.0, 0.0); spotLightCom.color.setValue(Math.random(), Math.random(), Math.random(), 1); spotLightCom.range = 50; spot...
来源: Laya3.0_文档 发布时间: 20251010
...sh; render.sharedMaterial = this.batchMat; //随机位置 sprite.transform.localPosition = this._getRandomPosition(positionRanvge); //随机一个颜色索引 let colorIndex = Math.floor(Math.random() * this._colorNums); //设置节点的 Laya.ENodeCustomData.custom_0 为对应的颜色索引 render...
来源: Laya3.0_文档 发布时间: 20251010