大约有 726 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0046 秒)
Laya_社区(330) Laya3.0_api(99) Laya2.0_api(82) laya_api(76) Laya2.0_文档(63) Laya_示例(46) Laya3.0_文档(18) Laya2.0_示例(12)
...ition.y; //根据移动的距离进行旋转 (owner as Sprite3D).transform.rotate(new Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ _text.text = "触控点为2"; isTwoTouch = true; //获取两个触碰点 var touch:Touch = _scene.input.getTouch(0); var touc...
来源: Laya2.0_文档 发布时间: 20210715
... / 2); tSprite.rotation = tObjectData.rotation; tSprite.x = tSprite.relativeX = Laya.Point.TEMP.x + this._map.viewPortX; ...
来源: Laya_社区 发布时间: 20220627
...touch.position.y; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouc...
来源: Laya2.0_文档 发布时间: 20210715
...touch.position.y; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouc...
来源: Laya2.0_文档 发布时间: 20210715
...始大小。有两种模式可供选择:Constant和TwoConstants。 Start Rotation:每个粒子的初始旋转角度。有两种模式可供选择:Constant和TwoConstants。 Start Color:每个粒子的初始颜色。有两种模式可供选择:Color(颜色值)和TwoColors(颜色过渡) Grav...
来源: Laya3.0_文档 发布时间: 20250214
...a; camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D = sprite.clone() as Laya.Sprite3D; s...
来源: Laya_社区 发布时间: 20220721
...tion=new Laya.Vector3(-8, 4, 15); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3( -8, -25, 0), true, false); })) } return Main; } ()); Main(); laya2.0的3d尝试,新人,看不懂这是为啥,错误如下: laya.d3.js:15290 Uncaught TypeError: Cannot read property 'props' ...
来源: Laya_社区 发布时间: 20180919
...Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); camera.addComponent(CameraMoveScript); // 生成平面,其实是一个box,只不过高度很小,可看成一个平面 var plane = scene.addChild(new MeshSprite3D(new BoxMesh...
来源: Laya_社区 发布时间: 20170314
...aya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { materi...
来源: Laya_社区 发布时间: 20190717
...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_社区 发布时间: 20171108