大约有 284 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0038 秒)
Laya_社区(161) Laya2.0_文档(43) Laya_示例(41) Laya3.0_api(12) laya_api(10) Laya2.0_api(10) Laya3.0_文档(6) Laya2.0_示例(1)
...xt.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 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 carylee...
来源: Laya_社区 发布时间: 20181015
...lToGlobal(pos2d); var pos:Vector3 = new Vector3(pos2d.x, pos2d.y, 0); var _translate:Vector3 = new Vector3(0, 0, 0); camera.convertScreenCoordToOrthographicCoord(pos, _translate); 2018-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180319
...a.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_1 : Laya.BoxColliderShape = new Laya.BoxColliderShape(1, 1, 1); boxRigidBody_1.colliderShape = b...
来源: Laya_社区 发布时间: 20190602
... mat.rotate(Math.PI / 2); mat.translate(screenHeight / pixelRatio, 0); canvasDegree = 90; } else { mat.rotate(-Math.PI / 2); ...
来源: Laya_社区 发布时间: 20180712
...比缩放 代码中没有监听Laya.Event.RESIZE,只是设置了相机的translate this.camera.transform.translate(new Laya.Vector3(0.2,1,3.2),false); 但是伸缩页面以后3d模型没有伸缩,如何设置3d模型的等比缩放 附件 : --> 2019-07-08 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20190708
...ra"; //相机平移位置 camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); //旋转相机 camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 ...
来源: Laya_社区 发布时间: 20190531
... this._tempVector3.z = distance; this.camera.transform.translate(this._tempVector3); } /** * 向右移动。 * @param distance 移动距离。 */ moveRight(distance: number): void { this._tempVector3.y = this._te...
来源: Laya_社区 发布时间: 20200707
...取到的坐标转换至百度地图坐标,由于它是作为convertor.translate()的参数,所以触发时作用域会被改变,因此在这里绑定了该函数的作用域。 ##### 2.1 init函数: ```java function init() { mapDiv = Laya.Browser.createElement("div"); Laya.Browser.document....
来源: Laya2.0_文档 发布时间: 20210715
...呢? 以下是我的代码,请大家指正!(function () { var convertTranslate = new Laya.Vector3(0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScri...
来源: Laya_社区 发布时间: 20161126
...ar camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0....
来源: Laya_示例 发布时间: 20250222