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

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

141. 滤镜-颜色滤镜 [ 76%]

...。let apePath = "res/apes/monkey2.png", apeTexture; class Filters_Color { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.sta...

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

142. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...口中。下面给出一个示例代码,实现脚本控制VideoNode: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VideoNode }) public video: Laya.VideoNode; constructor() { super(); } // 组件被激活后执行,此时所...

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

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

...种: 1、使用ColorFilter类直接创建滤镜,示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { // 获得Image组件 @property({ type: Laya.Image }) public img: Laya.Image; //组件被激活后执行,此时所有节点和组...

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

144. laya.d3.shader.Shader3D [ 75%]

...ll Classes | Index | Frames No Frames Shader3DProperties | Methods | Constants Packagelaya.d3.shaderClasspublic class Shader3DInheritanceShader3D BaseShader laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By activeSha...

来源: laya_api 发布时间: 20170929

145. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

... 不带类型,用于常规的资源 */}); 完整的脚本示例如下: const { regClass, property } = Laya; @regClass() export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTe...

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

146. 骨骼动画-换装 [ 75%]

...= ["goblin","goblingirl"], mCurrSkinIndex = 0; class Skeleton_ChangeSkin { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebG...

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

147. laya.d3.core.TextureMode [ 75%]

...tionAll Packages | All Classes | Index | Frames No Frames TextureModeConstants Packagelaya.d3.coreClasspublic class TextureModeInheritanceTextureMode Object ... Public Constants ConstantDefined By  Stretch : int = 0[static] 拉伸模式。 TextureMode  Tile : int = 1[static] 平铺模式...

来源: Laya2.0_api 发布时间: 20190513

148. laya.d3.core.GradientMode [ 75%]

...ionAll Packages | All Classes | Index | Frames No Frames GradientModeConstants Packagelaya.d3.coreClasspublic class GradientModeInheritanceGradientMode Object ... Public Constants ConstantDefined By  Blend : int = 0[static] 找到与请求的评估时间相邻的两个键,并线性插值...

来源: Laya2.0_api 发布时间: 20190513

149. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...ene2D节点后,加入下述代码,实现一个光遮挡器的效果: const { regClass, property } = Laya; @regClass() export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder:...

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

150. laya.d3.core.material.BaseMaterial [ 75%]

...lasses | Index | Frames No Frames BaseMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class BaseMaterialInheritanceBaseMaterial laya.resource.ResourceImplements laya.d3.core.ICloneSubclasses BlinnPhongMaterial, EffectMaterial, ExtendTerrainMaterial, PBRSpecula...

来源: Laya2.0_api 发布时间: 20190513