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

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

121. 计时器-间隔循环 [ 75%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText =...

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

122. 2D拖尾渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

... 一个归一化的值,决定了拖尾不同位置的宽度 拖尾颜色(color) 设置拖尾的颜色,会与拖尾的渐变色混合叠加形成最终颜色 拖尾渐变色(colorGradient) 设置拖尾的渐变色,会与拖尾的颜色混合叠加形成最终颜色 纹理模式(textureMode) 控...

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

123. 请教下, 自己写了个渐变色shader, 但是效果始终不对。麻烦大神们看看代码哪里有问题 [ 75%]

...Matrix': [Laya.Sprite3D.MVPMATRIX, Laya.Shader3D.PERIOD_MATERIAL], 'u_StartColor':[Laya.VertexElementUsage.STARTCOLOR0,Laya.Shader3D.PERIOD_MATERIAL], 'u_EndColor':[Laya.VertexElementUsage.ENDCOLOR0,Laya.Shader3D.PERIOD_MATERIAL] //'u_MainTex': [1, Laya.Shader3D.PERIOD_MATERIAL] }; var vs = "uniform...

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

124. 自定义格式模型创建&渲染问题 [ 75%]

...中用到了自定义格式的模型文件 .... if(this.m_spModelData.HasColor()) { VerElement[Index] = new Laya.VertexElement(Stride, Laya.VertexElementFormat.Color, Laya.VertexElementUsage.COLOR0); Stride += 16; Index += 1; } var VertDecal = new Laya.VertexDeclaration(Stride, VerElement); NewMesh....

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

125. 分享,扩展Laya.Text组件实现简单的富文本 [ 75%]

...新划分文本 private underLineWidth = 0; //下划线长度 private underColor = ""; //下划线颜色 /** * 渲染文字 * @param begin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "...

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

126. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 75%]

...什么都没留下…… **/ interface ITextFormat { /** * 背景色 */ bgColor?: string; /** * 是否加粗 */ bold?: number; /** * 文本框背景色 */ borderColor?: string; /** * 文本颜色 */ color?: string; /** * 字体 */ font?: string; /** * 字体大小 */ fontSize?: number; /** * 是否...

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

127. 滤镜效果 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...用滤镜。 (动图1-1) 如图1-2所示,可以创建颜色滤镜(ColorFilter)、模糊滤镜(BlurFilter)、发光滤镜(GlowFilter)。 (图1-2) 1.2 同时生效 如图1-3所示,不同滤镜效果可以叠加使用并同时生效,开发者可以根据需要进行设置。 ...

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

128. 用Transform和直接设置xy坐标的效果不一致 [ 75%]

...一致的。 let txt: Laya.Text = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; txt.x = 1136 / 2, txt.y = 320; Laya.stage.addChild(txt);          txt = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; let mat = new Laya.Matrix(); mat.translate(1136 / 2, 320); txt.tra...

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

129. 场景环境光(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 75%]

...​ ![](img/1.png)(图1) **Source** 光源选项目前可以使用Skybox和Color两种。 **Ambient Color** 环境光的颜色。设置为Color时的环境光颜色。 **Ambient Mode** 环境模式,只能使用 `Realtime `实时光照。 设置之后调整颜色或者 #### 使代码设置环境光...

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

130. 场景环境光(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 75%]

...​ ![](img/1.png)(图1) **Source** 光源选项目前可以使用Skybox和Color两种。 **Ambient Color** 环境光的颜色。设置为Color时的环境光颜色。 **Ambient Mode** 环境模式,只能使用 `Realtime `实时光照。 设置之后调整颜色或者 #### 使代码设置环境光...

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