大约有 511 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)
Laya_社区(277) Laya2.0_文档(68) Laya3.0_api(54) Laya_示例(42) Laya3.0_文档(30) Laya2.0_示例(24) Laya2.0_api(9) laya_api(7)
...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
...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
...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
....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
...)); //设置平行光颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载小猴子精灵 let monkey = Laya.Loader.getRes("Export/LayaScene_JJF/Conventional/JJF.lh"); //猴子...
来源: Laya_社区 发布时间: 20190531
...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
...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
...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
..., Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D.BYTES_PE] } }// 关于修改shader内部值的操作 假如有uniform float water_iTime setShaderValue (sprite) { // 在这里直接对 sprite.shaderValue....
来源: Laya_社区 发布时间: 20180531
...色 this.lightComp.falloffRange = 3; // 增大衰减范围 this.lightComp.color = new Laya.Color(1.0, 0.9, 0.6, 1); // 设置灯光颜色 this.lightComp.intensity = this.intensity; // 应用灯光强度 } onUpdate(): void { // 实现灯光旋转动画 this.lightComp.lightRotation += this.rotateSpeed...
来源: Laya3.0_文档 发布时间: 20250214