大约有 518 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)
Laya_社区(280) Laya2.0_文档(68) Laya3.0_api(54) Laya_示例(42) Laya3.0_文档(34) Laya2.0_示例(24) Laya2.0_api(9) laya_api(7)
...his.Light = this.mainscene.addChild(new Laya.DirectionLight()); this.Light.color = new Laya.Vector3(0.7, 0.7, 0.7); this.Light.direction = new Laya.Vector3(-1.3, -1.5, -1.6); // shadow this.Light.shadow = true; //产生投影的范围(如过小将不会产生投影) this.Light.shadowDistance = 1...
来源: Laya_社区 发布时间: 20181016
...ra.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); directionLight.direction = new Laya.Vector3(-1, -1, 2); //灯光开启阴...
来源: Laya_社区 发布时间: 20180717
...IGHT0, ShaderDataType.Vector4] Defined in laya/d3/shader/SubShader.ts:49 a_Color a_Color: [number, Vector4] = [VertexMesh.MESH_COLOR0, ShaderDataType.Vector4] Defined in laya/d3/shader/SubShader.ts:48 a_Normal a_Normal: [number, Vector3] = [VertexMesh.MESH_NORMAL0, ShaderDataType.Vector3] Defined in...
来源: Laya3.0_api 发布时间: 20231102
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { var t1: Text = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2: Text = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110)...
来源: Laya2.0_文档 发布时间: 20210715
...)); //设置平行光颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载小猴子精灵 let monkey = Laya.Loader.getRes("Export/LayaScene_JJF/Conventional/JJF.lh"); //猴子...
来源: Laya_社区 发布时间: 20190531
....contentDiv.style.fontSize = this.contentT.fontSize; this.contentDiv.style.color = this.contentT.color; this.contentDiv.style.align = "center"; 圣诞老人的麋鹿 • 2020-08-19 15:35 请问你这个实例是写在对这个UI引用的的地方吗? 1569295620用户 • 2019-10-28 14:51...
来源: Laya_社区 发布时间: 20191028
...false, false]; private init() { // 设置背景色为场景高度 this.box_color_bg.height = Laya.stage.height; } onEnable() { this.init(); // 判定是注册还是忘记密码 if (GameData.I.isReg) { this._regMode(); } else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event....
来源: Laya_社区 发布时间: 20200410
...ra.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = ne...
来源: Laya_社区 发布时间: 20180808
...a.DirectionLight()) as Laya.DirectionLight; this.m_light.color = new Laya.Vector3(0.8, 0.8, 0.8); this.m_light.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 1)); this.m_light.shadowCascadesMode = Laya.ShadowCascadesMode.NoCascade...
来源: Laya_社区 发布时间: 20200323
...ure; Laya.init(800, 600); var txt = new Text(); txt.pos(200, 200); txt.color = "#FFFFFF"; txt.text = "000000"; Laya.stage.addChild(txt); var spr = new Sprite(); spr.size(50, 50); Laya.stage.addChild(spr); spr.texture = "images/circle.png"; txt.text = spr.texture.getPixels(25,25,1,1);希望...
来源: Laya_社区 发布时间: 20190401