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

大约有 511 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)

231. 超出文本区域的处理&滚动文本(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

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

234. 创建[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

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

237. 【初学者】导入模型进行旋转结果出现问题 [ 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

238. 一个关于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

239. 关于要自定shader的同学 [ 62%]

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

240. 2D自由形态光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

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