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

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

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

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

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

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

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

286. 关于要自定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

287. laya.d3.core.light.PointLightCom_API3.0 [ 62%]

... PointLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id intensity lightWorldMatrix lightmapBakedType range shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias shadowResolution...

来源: Laya3.0_api 发布时间: 20231115

288. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 62%]

...t = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(1, 1, 1); directionLight.transform.rotate(new Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载的时候,...

来源: Laya2.0_文档 发布时间: 20210715

289. 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_文档 发布时间: 20251010

290. 3D的点光源或者聚光灯的光源会穿透模型 [ 62%]

...nsform.translate(new Laya.Vector3(0, 0, 3));         spotLight_.color = new Laya.Vector3(1, 0, 0);         spotLight_.intensity = 50;         camera_.transform.translate(new Laya.Vector3(0, 3, 0));         camera_.transform.rotate(new Laya.Vector3(-45, ...

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