大约有 1,200 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0085 秒)
Laya_社区(569) Laya3.0_api(166) Laya2.0_文档(165) Laya2.0_api(116) laya_api(115) Laya_示例(43) Laya3.0_文档(26)
...t()) as Laya.SpotLight; //设置聚光灯颜色 spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); s...
来源: Laya2.0_文档 发布时间: 20210715
...5.4 纹理类5.5 颜色类6.常见的Params类型6.1 Float6.2 Texture2D6.3 Vector2/3/46.4 Color6.5 Define7.自定义函数8.进阶示例8.1 顶点着色器片段8.2 片段着色器片段拓展:快捷操作Shader蓝图 1.蓝图概述 1.1 创建蓝图 在Assert窗口右键Create菜单选择Shader Bl...
来源: Laya3.0_文档 发布时间: 20250103
...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_示例 发布时间: 20250219
...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