大约有 1,194 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0050 秒)
Laya_社区(568) Laya3.0_api(166) Laya2.0_文档(165) Laya2.0_api(116) laya_api(115) Laya_示例(43) Laya3.0_文档(21)
...h.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); fish.transform.position = new Laya.Vector3(0,0.5,0); // fish.transform.position = new Laya.Vector3(0.4,0.5,-0.35); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); var anifish = fish.addCompon...
来源: Laya_社区 发布时间: 20171206
...Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = this.spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0...
来源: Laya2.0_文档 发布时间: 20210715
...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 0)); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCu...
来源: Laya_示例 发布时间: 20241118
...AS3原生类都没法用喽,像字典类Dictionary,Timer,ByteArray,Vector.<>之类的。 另外显然的AS3事件机制全体阵亡喽?比如全部使用laya.event里面的事件机制是吗? 另外一些AS3非常常用的第三方库TweenMax之类的,显然也是无法用...
来源: Laya_社区 发布时间: 20170510
...w SpotLight()) as SpotLight; //设置聚光灯颜色 spotLight.color = new Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Vector3(0.0, 1.2, 0.0); //设置聚光灯的方向 var mat:Matrix4x4 = spotLight.transform.worldMatrix; mat.setForward(new Vector3(0.15, -1.0, 0.0))...
来源: Laya2.0_文档 发布时间: 20210715
...; var unlitMaterial = new UnlitMaterial(); unlitMaterial.albedoColor = new Vector4(255,0,0,255); var shurikenMaterial:ShurikenParticleMaterial = new ShurikenParticleMaterial(); shurikenMaterial.color = new Vector4(255,0,0,255); 按我的理解,官方示例上的unlitMaterial.albedoColor不是...
来源: Laya_社区 发布时间: 20201218
...s void generatePositionAndDirection generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Overrides BaseShape.generatePositionAndDirection Defined in laya/d3/core/particleShuriKen/module/shape/SphereShape.ts:56 用于生成粒子初始位...
来源: Laya3.0_api 发布时间: 20231115
...s void generatePositionAndDirection generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Overrides BaseShape.generatePositionAndDirection Defined in laya/d3/core/particleShuriKen/module/shape/HemisphereShape.ts:59 用于生成粒子初始...
来源: Laya3.0_api 发布时间: 20231115
...amera(); scene.addChild(camera); camera.transform.localPosition = new Laya.Vector3(0,4,10); //载入并显示3D建筑 var map = Laya.Sprite3D.load("LayaScene_test/test.lh"); scene.addChild(map); //map.transform.localPosition = new Laya.Vector3(0,-4,-10); //控制摄像机 camera.addComponent(CameraM...
来源: Laya_社区 发布时间: 20170524
...ipt extends Laya.Script { /** @private */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number; protected lastMouseY: number; protected yawPitchRoll: Laya.Vector3 = new Laya.Vector3(); protected resultRotation: Laya...
来源: Laya_社区 发布时间: 20200707