大约有 720 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0047 秒)
Laya_社区(328) Laya3.0_api(99) Laya2.0_api(82) laya_api(76) Laya2.0_文档(63) Laya_示例(46) Laya3.0_文档(14) Laya2.0_示例(12)
...orm.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 15; this.mainCamera = camera; // var directionLight = scene.addChild(new Laya.DirectionLight()); // directionLigh...
来源: Laya_社区 发布时间: 20180126
...amera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()); spotLight.color = new Laya.Vector3(1, 1, 0); spotLight.transform.posit...
来源: Laya_示例 发布时间: 20241118
...北极的角度值是60,南极的角度是-60;我是用transform.localRotationEuler获取的角度,然后我再用transform.localRotationEuler=new Vector3(60,0,0),这个时候是北极正朝向观众,前提必须y和z的值是0,如果y值变化,比如transform.localRotationEuler=new Ve...
来源: Laya_社区 发布时间: 20180529
...eObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild) LayaExport...
来源: Laya_社区 发布时间: 20171106
...); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.4); directionLight.di...
来源: Laya_社区 发布时间: 20180104
...); 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
...stage.addChild(older); console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds().width,older.getBounds().height); older.scale(2,2); console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older....
来源: Laya_社区 发布时间: 20170118
... camera.transform.translate(new Laya.Vector3(0, 1.5, 4)); 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
...super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footprint.png"); p.pos(i*PATH_LEN,0); arr.push(...
来源: Laya_社区 发布时间: 20171113
...ansform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new Laya.MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/skinModel/LayaMonkey/Assets/LayaMo...
来源: Laya2.0_文档 发布时间: 20210715