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

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

1. 浏览器接口 · LayaAir3.4 · 引擎文档 · LAYABOX [ 100%]

...否在移动设备,包括IOS和安卓等设备内。*/ static onMobile: boolean; /** 表示是否在 IOS 设备内。*/ static onIOS: boolean; /** 表示是否在 Mac 设备。*/ static onMac: boolean; /** 表示是否在 IPhone 设备内。*/ static onIPhone: boolean; /** 表示是否在 IPad 设...

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

2. zip更新 · LayaAir3.4 · 引擎文档 · LAYABOX [ 91%]

...rl:string, local:string, onprog:(total:number,now:number,speed:number)=>boolean,oncomp:(curlret:number, httpret:number)=>void, trynum:number, opttimeout:number)=>void; 处理zip文件的ZipFile类。 interface ZipFile{ /** * 注意这个文件不要太大,因为需要在内存中解开,...

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

3. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 91%]

...口 constructor(config?: Partial<DynamicAtlasConfig>, autoReplace: boolean = true) 参数说明: config是创建动态图集需要的配置参数,各项参数内容如下: 参数 类型 默认值 说明 largeTextureSize [number, number] [1024, 1024] 大纹理尺寸 [宽度, 高度] maxLa...

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

4. 后处理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 88%]

...| 类型 | 说明 | 默认值 | |------|------|------|--------| | active | boolean | 是否激活此元素(所有后处理效果均有此参数 后续不再说明) | true | | lensFlareData | LensFlareData | 镜头光晕数据(包含所有元素) | null | | bindLight | Light | 绑定的光源...

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

5. 资源加载 · LayaAir3.4 · 引擎文档 · LAYABOX [ 86%]

...载。 group?: string; //分组,方便对资源进行管理。 cache?: boolean; //是否缓存 noRetry?: boolean; //是否重新尝试加载 silent?: boolean; //是否提示加载失败 useWorkerLoader?: boolean; //(default = false)是否使用worker加载(只针对IMAGE类型和ATLAS类型,...

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

6. 组件装饰器说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 85%]

...本类型 "string" 也可以用String来标记该类型 布尔值类型 "boolean" 也可以用Boolean来标记该类型 整数类型 "int" 等价于 { type: Number, fractionDigits: 0 } 正整数类型 "uint" 等价于 { type: Number, fractionDigits: 0 , min: 0 } 多行字符串文本类型 "text" ...

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

7. 定时器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 80%]

...y: number, caller: any, method: Function, args: any[] = null, coverBefore: boolean = true): void { this._create(true, false, delay, caller, method, args, coverBefore); } 使用示例如下: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export...

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

8. 3D变换 · LayaAir3.4 · 引擎文档 · LAYABOX [ 77%]

... isLocal 是否局部空间。 */ translate(translation: Vector3, isLocal: boolean = true): void { if (isLocal) { Matrix4x4.createFromQuaternion(this.localRotation, Transform3D._tempMatrix0); Vector3.transformCoordinate(translation, Transform3D._tempMatrix0, Transform3D._tempVector30); Vector3.add(t...

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

9. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

...毁节点和使用到的资源),默认为false*/ autoDestroyAtClosed: boolean = false; 当勾选 Auto Destroy At Closed后,场景在关闭时会自动调用场景的销毁 Destroy() 方法 1.4 mouseThrough属性 另外一个属性是 Mouse Through,默认是勾选的 由于2D场景和3D场景...

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

10. 程序蓝图 · LayaAir3.4 · 引擎文档 · LAYABOX [ 75%]

...structor(testParams: string) { super(); } // 属性 @bpProperty({ "type": "boolean" }) aaa: boolean = true; // 静态属性 @bpProperty({ "type": "boolean", "modifiers": { "isStatic": true } }) static bbb: boolean = true; // get & set @bpAccessor({ "type":"string" }) get testParams():string{ ret...

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