大约有 471 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0042 秒)
Laya_社区(148) Laya3.0_api(88) Laya2.0_api(75) laya_api(69) Laya2.0_文档(43) Laya_示例(37) Laya3.0_文档(9) Laya2.0_示例(2)
...": 0, "y": 0, "w": 300, "h": 300 }, "sourceSize": { "w": 300, "h": 300 }, "rotated": false, "trimed": true }, "sg2.png": { "frame": { "x": 302, "y": 0, "w": 290, "h": 300, "idx": 0 }, "spriteSourceSize": { "x": 10, "y": 0, "w": 290, "h": 300 }, "sourceSize": { "w": 300, "h": 300 }, "rotated": false,...
来源: Laya_社区 发布时间: 20170329
...mera.transform.translate(new Laya.Vector3(0, 0.85, 1.7)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.directi...
来源: Laya_示例 发布时间: 20241118
...); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); let directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); let mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(1.0, -1.0, -1...
来源: Laya_社区 发布时间: 20200915
....8, 1.5)); //旋转相机 camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); ...
来源: Laya_社区 发布时间: 20190605
...任何改变外观的属性都将导致图形重绘: ```typescript var rotation=0, scale=1, position=0; private function setRotation(value):void { this.rotation=value; update(); } private function setScale(value):void { this.scale = value; update(); } private function setPosition(value):void { thi...
来源: Laya2.0_文档 发布时间: 20210714
... camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6...
来源: Laya_示例 发布时间: 20241118
...); camera.transform.translate(new Laya.Vector3(0, 5, 0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.8, 0.8, 0.8); directionLi...
来源: Laya_社区 发布时间: 20180717
...); camera.transform.translate(new Laya.Vector3(0, 5, 0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.8, 0.8, 0.8); directionLi...
来源: Laya_社区 发布时间: 20170809
如何限制旋转角度 我用sphere.transform.rotate(vecty,false,false); 旋转这个球体的X轴角度,假定是个地球仪,怎么限制转到北极或南极就不让它转了,如果转到北极或南极仍然能继续转的话,地球就成倒置的,不符合实际需求,怎么处...
来源: Laya_社区 发布时间: 20180518
...ocalMatrix localPosition localPositionX localPositionY localPositionZ localRotation localRotationEuler localRotationEulerX localRotationEulerY localRotationEulerZ localRotationW localRotationX localRotationY localRotationZ localScale localScaleX localScaleY localScaleZ owner position rotation rotati...
来源: Laya3.0_api 发布时间: 20231115