• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 518 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)

231. 请问3D平行光产生的投影 如何修改颜色深浅 [ 63%]

...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

232. laya默认模型的阴影没有渲染 [ 62%]

...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

233. laya.d3.shader.SubShader_API3.0 [ 62%]

...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

234. 超出文本区域的处理&滚动文本(TypeScript-LayaAir基础篇(TS)-文本) [ 62%]

...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

235. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 62%]

...));         //设置平行光颜色         directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6);                      //加载小猴子精灵         let monkey = Laya.Loader.getRes("Export/LayaScene_JJF/Conventional/JJF.lh");         //猴子...

来源: Laya_社区 发布时间: 20190531

236. 创建[HTMLDivElement]时遇到错误(手动实例一次本组件可定位错误) [ 62%]

....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

237. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 62%]

...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

238. 【初学者】导入模型进行旋转结果出现问题 [ 62%]

...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

239. LayaAir2.6.0版阴影系统如何使用,请教请教! [ 62%]

...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

240. 一个关于getPixels的问题 [ 62%]

...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