大约有 248 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0042 秒)
Laya_社区(142) Laya_示例(42) Laya3.0_api(21) Laya2.0_api(17) laya_api(15) Laya2.0_文档(7) Laya3.0_文档(4)
...dChild(new Laya.Camera(0, 0.1, 1000)); camera.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...
来源: Laya_示例 发布时间: 20241118
...a (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolea...
来源: Laya_社区 发布时间: 20180206
... out 相交点 */ static intersectsRayAndPlaneRP(ray:Ray, plane:Plane, out:Vector3):boolean { var distance:number; if (!CollisionUtils.intersectsRayAndPlaneRD(ray, plane, distance)) { out = Vector3._ZERO; return false; } Vector3.scale(ray.direction, distance, CollisionUtils._tempV30); Vector3.add(ra...
来源: Laya_社区 发布时间: 20191012
...w Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false); Laya.stage.on(Event.MOUSE_WHEEL,this,this.onMouseWheel); } private onMouseWheel(e:Event):void { e. //没有delta 属性 } } } new laya.In...
来源: Laya_社区 发布时间: 20170321
...Child(camera); //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 4, 8)); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight...
来源: Laya_社区 发布时间: 20180307
...示不透明。更改alpha值会影响drawcall。Sprite ambientColor : Vector3 获取环境光颜色。 Scene autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容的变化而变化,如果想根据绘制...
来源: laya_api 发布时间: 20170929
...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); alert(Laya.Render.isWebG...
来源: Laya_社区 发布时间: 20180614
...坐标,为射线检测偏差使用 public changeToClientWorld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.sta...
来源: Laya_社区 发布时间: 20180530
...dChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new La...
来源: Laya_社区 发布时间: 20180605
...ene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, co...
来源: Laya_社区 发布时间: 20200903