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

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

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

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

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

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

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

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

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

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

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

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

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

186. 有关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

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

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

189. 动态阴影被切割了?为啥没有显示完成的阴影 [ 65%]

...a.transform.rotate(new Laya.Vector3(-30, 45, 0), true, false); camera.clearColor = null; camera.orthographic = false; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.direction = new Laya.Vector3(-1, -1...

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

190. 2D物理-复合碰撞器 [ 65%]

...Laya.Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBox(); this.eventListener(); } createBox() { const width = 300, height = 20; const posx = Laya.Browser.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(...

来源: Laya2.0_示例 发布时间: 20260303