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

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

171. 3d点光源究竟有无衰减参数设置的? [ 67%]

... var pointLight = scene.addChild(new Laya.PointLight()); pointLight.ambientColor = new Laya.Vector3(0.8, 0.8, 0.8); pointLight.specularColor = new Laya.Vector3(2.0, 2.0, 0.9); pointLight.diffuseColor = new Laya.Vector3(1, 1, 1); pointLight.transform.translate(new Laya.Vector3(0, 30, 0)); pointLight....

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

172. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 67%]

...始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 this.createTween(); } //创建缓动文本 private createTween():void{ //"LayaBox字符串总宽度" var w:number = 800; //文本创建的起始位置(>>在此使用右移运算符,相...

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

173. laya.particle.shader.value.ParticleShaderValue_API3.0 [ 67%]

...structors constructor Properties ALPHA alpha clipMatDir clipMatPos clipOff color colorAdd defines filters mainID mmat ref shader size subID texture textureHost u_CurrentTime u_Duration u_EndVelocity u_Gravity u_MvpMatrix u_mmat2 u_texture TEMPMAT4_ARRAY Methods clear release setFilters setValue upda...

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

174. Socket连接不上(已解决) [ 67%]

...            txt.text = "This is a demo";             txt.color = "#FF0000";             txt.fontSize = 50;             txt.stroke = 3;             txt.strokeColor = "#FFFFFF";             txt.pos(50, 100);             Laya.stage.addChild...

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

175. SpotLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 66%]

...new Laya.SpotLight()) as Laya.SpotLight; //设置聚光灯颜色 spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.1...

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

176. HtmlDIV style="text-align:center"无效,该怎么居中文字呢? [ 66%]

...ze = 30;    p.style.align = "center";    var html:String = "<span color='#ffffff'>居中测试文本</span>";    p.innerHTML = html;   p.style.align是设置水平居中。 2017-02-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

177. Effect材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 66%]

...,这种材质常用特效制作。 #### 主要属性与方法 > 属性 `color:Vector4` 颜色。 `renderMode:int` [write-only] 设置渲染模式。 `texture:BaseTexture` 贴图。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用Effect材质 下面代码来自官方示例([demo...

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

178. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 66%]

...ault:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:String, default:"#0000ff"}*/ public color: string = "#0000ff"; /** @prop {name:layoutType, tips:"排版方式(verticalRight-0 竖排从右到左)", type:enum, default:0}*/ public ...

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

179. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 66%]

...ene.addChild(new Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = this.spotLight.transform.worldMatrix; mat.setForward(new Laya.V...

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

180. Effect材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 66%]

...,这种材质常用特效制作。 #### 主要属性与方法 > 属性 `color:Vector4` 颜色。 `renderMode:int` [write-only] 设置渲染模式。 `texture:BaseTexture` 贴图。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用Effect材质 下面代码来自官方示例([demo...

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