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

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

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

222. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 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

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

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

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

224. 后期处理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...后期处理效果会相互叠加,并同时生效: 二、变色效果 ColorEffect2D是变色效果,通过设置不同的参数,变色效果可以在不改变图像大致样式的前提下,使其呈现出不同的风格和效果。实际运行时,变色效果不会对节点进行变形处...

来源: Laya3.0_文档 发布时间: 20251010

225. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...字体需要频繁修改,可以勾选此项以提升性能 文本颜色 color 文本的颜色,可以直接输入颜色值,例如:#ffffff,也可以点击输入条右侧的拾色器选取颜色 自适应大小 fit content 否("no"):无操作;高度和宽度("yes"):Label边框...

来源: Laya3.0_文档 发布时间: 20251010

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

...e.addChild(new Laya.PointLight()); //设置点光源颜色 this.pointLight.color = new Laya.Vector3(1.0, 0.5, 0.0); //设置点光源位置 this.pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); //设置点光源的范围 this.pointLight.range = 3.0; ``` **range** 为设置点光源...

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

227. laya.ani.GraphicsAni_API3.0 [ 66%]

...turns void drawCircle drawCircle(x: number, y: number, radius: number, fillColor: any, lineColor?: any, lineWidth?: number): DrawCircleCmd Inherited from Graphics.drawCircle Defined in laya/display/Graphics.ts:544 绘制圆形。 Parameters x: number 圆点X 轴位置。 y: number 圆点Y 轴位置...

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

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

...Child(new Laya.DirectionLight()); //设置灯光颜色 this.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); this.directionLight.transform.worldMatrix = mat; ``` ​ **setFo...

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

229. 有关Laya3D碰撞检测疑问 [ 66%]

...ansform.rotate(new Laya.Vector3(-15, 0, 0), true, false); this.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 = new La...

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

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

...ectionLight()) as Laya.DirectionLight; //方向光的颜色 directionLight.color = new Laya.Vector3(1, 1, 1); //设置平行光的方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` ​ **setForward*...

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